Make sure if a UI_DIALOG handler returns window_event_result::close or window_event_result::deleted, it will be passed onto window_send_event
This commit is contained in:
parent
787dbbbf72
commit
66de1a1823
|
@ -98,7 +98,7 @@ static window_event_result ui_dialog_handler(window *wind,const d_event &event,
|
|||
return window_event_result::ignored;
|
||||
|
||||
if (dlg->d_callback)
|
||||
if ((rval = (*dlg->d_callback)(dlg, event, dlg->d_userdata)) == window_event_result::handled)
|
||||
if ((rval = (*dlg->d_callback)(dlg, event, dlg->d_userdata)) != window_event_result::ignored)
|
||||
return rval; // event handled
|
||||
|
||||
if (!window_exists(wind))
|
||||
|
|
Loading…
Reference in a new issue