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; }