From dd3a41b87f4a566171d374aa2d7629126d5fd628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Sun, 6 Dec 2020 08:21:16 +0100 Subject: [PATCH] Don't confirm settings save when ran with `-S` Closes #1150 --- src/win/win_settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_settings.c b/src/win/win_settings.c index ee442179a..78ae33e72 100644 --- a/src/win/win_settings.c +++ b/src/win/win_settings.c @@ -5007,7 +5007,7 @@ win_settings_confirm(HWND hdlg) SendMessage(hwndChildDialog, WM_SAVESETTINGS, 0, 0); if (win_settings_changed()) { - if (confirm_save) + if (confirm_save && !settings_only) i = settings_msgbox_ex(MBX_QUESTION_OK | MBX_WARNING | MBX_DONTASK, (wchar_t *) IDS_2121, (wchar_t *) IDS_2122, (wchar_t *) IDS_2123, NULL, NULL); else i = 0;