From 9159e523491ede4d8e5425a1c2d6389400610f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Sat, 21 Nov 2020 21:16:32 +0100 Subject: [PATCH] Fix the settings OK button logic --- src/win/win_settings.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/win/win_settings.c b/src/win/win_settings.c index b54315cfe..ed030243c 100644 --- a/src/win/win_settings.c +++ b/src/win/win_settings.c @@ -4964,15 +4964,16 @@ win_settings_confirm(HWND hdlg) if (i == 0) { win_settings_save(); - } - DestroyWindow(hwndChildDialog); - EndDialog(hdlg, 0); - win_notify_dlg_closed(); + DestroyWindow(hwndChildDialog); + EndDialog(hdlg, 0); + win_notify_dlg_closed(); - return TRUE; + return TRUE; + } else + return FALSE; } else - return FALSE; + return TRUE; }