From ddbc022ce1d87b33fb586a4989ad92f5c018c729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Sat, 21 Nov 2020 21:31:42 +0100 Subject: [PATCH] Fix Settings dialog not closing after pressing OK --- src/win/win_settings.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/win/win_settings.c b/src/win/win_settings.c index ed030243c..31bdfe8b1 100644 --- a/src/win/win_settings.c +++ b/src/win/win_settings.c @@ -4962,18 +4962,16 @@ win_settings_confirm(HWND hdlg) i = 0; } - if (i == 0) { + if (i == 0) win_settings_save(); - - DestroyWindow(hwndChildDialog); - EndDialog(hdlg, 0); - win_notify_dlg_closed(); - - return TRUE; - } else + else return FALSE; - } else - return TRUE; + } + + DestroyWindow(hwndChildDialog); + EndDialog(hdlg, 0); + win_notify_dlg_closed(); + return TRUE; }