I fixed a warning for gcc 4.3.
I didn't change the semantics and the current way it works appears to be reasonable, but I don't know enough about this section to be 100% sure their wasn't a mistake that should have been corrected. It would be nice if the person that changed it made sure that the semantics were correct.
This commit is contained in:
parent
cae91c0a44
commit
6ee1bf1cd3
1 changed files with 1 additions and 1 deletions
|
@ -706,7 +706,7 @@ int dialog::process(dialog_process_info &info)
|
|||
const bool use_text_input = (text_widget_!=NULL);
|
||||
const bool has_input = (use_menu||use_text_input);//input of any sort has to be made
|
||||
|
||||
if(((!info.key_down && (info.key[SDLK_RETURN] || info.key[SDLK_KP_ENTER]) || info.double_clicked) &&
|
||||
if((((!info.key_down && (info.key[SDLK_RETURN] || info.key[SDLK_KP_ENTER])) || info.double_clicked) &&
|
||||
(type_ == YES_NO || type_ == OK_CANCEL || type_ == OK_ONLY || type_ == CLOSE_ONLY))) {
|
||||
|
||||
return (use_menu ? menu_->selection() : 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue