From: Toni Wilen Date: Thu, 26 Jul 2018 16:57:48 +0000 (+0300) Subject: CTRL+F11 quit didn't check "Warn when attempting to close window" option. X-Git-Tag: 4100~138 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=d115ca69409764c00eeb9b4510a8355e2dec2117;p=francis%2Fwinuae.git CTRL+F11 quit didn't check "Warn when attempting to close window" option. --- 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);