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:
parent
18062bf812
commit
5322ce4a0f
|
@ -1131,8 +1131,7 @@ window_event_result editor_handler(UI_DIALOG *, const d_event &event, unused_ui_
|
||||||
|
|
||||||
if (ModeFlag)
|
if (ModeFlag)
|
||||||
{
|
{
|
||||||
ui_close_dialog(EditorWindow);
|
return window_event_result::close;
|
||||||
return window_event_result::ignored;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (EditorWindow->keyboard_focus_gadget == GameViewBox) current_view=NULL;
|
// if (EditorWindow->keyboard_focus_gadget == GameViewBox) current_view=NULL;
|
||||||
|
|
Loading…
Reference in a new issue