From d115ca69409764c00eeb9b4510a8355e2dec2117 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 26 Jul 2018 19:57:48 +0300 Subject: [PATCH] CTRL+F11 quit didn't check "Warn when attempting to close window" option. --- od-win32/keyboard_win32.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/od-win32/keyboard_win32.cpp b/od-win32/keyboard_win32.cpp index 7d749cdd..bbb3c39b 100644 --- a/od-win32/keyboard_win32.cpp +++ b/od-win32/keyboard_win32.cpp @@ -427,8 +427,12 @@ bool my_kbd_handler (int keyboard, int scancode, int newstate, bool alwaysreleas } #endif - if (amode && scancode == DIK_F11 && currprefs.win32_ctrl_F11_is_quit && ctrlpressed ()) - code = AKS_QUIT; + if (amode && scancode == DIK_F11 && currprefs.win32_ctrl_F11_is_quit && ctrlpressed()) { + if (!quit_ok()) + return true; + uae_quit(); + return true; + } if (scancode == DIK_F9 && specialpressed ()) { extern bool toggle_3d_debug(void); -- 2.47.3