From 5322ce4a0faaa8b23fc2bb656b41e66e1c6722d0 Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Thu, 27 Oct 2016 17:48:23 +0800 Subject: [PATCH] Make editor_handler return window_event_result::close instead of closing itself This ensures the event system will know what's going on. --- similar/editor/med.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/similar/editor/med.cpp b/similar/editor/med.cpp index 8573331c8..aa70a487a 100644 --- a/similar/editor/med.cpp +++ b/similar/editor/med.cpp @@ -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;