From 9d7b7dc16058338572708de34e2eb4a53b763c21 Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Thu, 27 Oct 2016 17:31:26 +0800 Subject: [PATCH] Make hostage_dialog_handler return window_event_result::close instead of closing itself This ensures the event system will know what's going on. --- d1x-rebirth/editor/ehostage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d1x-rebirth/editor/ehostage.cpp b/d1x-rebirth/editor/ehostage.cpp index 2c0b082a9..629381989 100644 --- a/d1x-rebirth/editor/ehostage.cpp +++ b/d1x-rebirth/editor/ehostage.cpp @@ -375,8 +375,7 @@ static window_event_result hostage_dialog_handler(UI_DIALOG *dlg,const d_event & Update_flags |= UF_WORLD_CHANGED; if (GADGET_PRESSED(h->quitButton.get()) || keypress==KEY_ESC) { - hostage_close_window(); - return window_event_result::handled; + return window_event_result::close; } LastHostageIndex = CurrentHostageIndex;