Make editor_handler return window_event_result::close instead of closing itself

This ensures the event system will know what's going on.
This commit is contained in:
Chris Taylor 2016-10-27 17:48:23 +08:00
parent 18062bf812
commit 5322ce4a0f

View file

@ -1131,8 +1131,7 @@ window_event_result editor_handler(UI_DIALOG *, const d_event &event, unused_ui_
if (ModeFlag)
{
ui_close_dialog(EditorWindow);
return window_event_result::ignored;
return window_event_result::close;
}
// if (EditorWindow->keyboard_focus_gadget == GameViewBox) current_view=NULL;