From c2aaf9621a0714fbd4436a27bc2b7327330e9a96 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Sun, 7 Jun 2020 13:51:17 +0200 Subject: [PATCH] + fix: don't overwrite grepWinNP3's user settings for backup in folders --- src/Dialogs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Dialogs.c b/src/Dialogs.c index c05206e2d..476672525 100644 --- a/src/Dialogs.c +++ b/src/Dialogs.c @@ -3491,7 +3491,7 @@ grepWin_t; static grepWin_t grepWinIniSettings[13] = { - { L"onlyone", L"true" }, + { L"onlyone", L"1" }, { L"AllSize", L"1" }, { L"Size", L"2000" }, { L"CaseSensitive", L"0" }, @@ -3596,10 +3596,10 @@ void DialogGrepWin(HWND hwnd, LPCWSTR searchPattern) IniSectionSetString(globalSection, L"editorcmd", tchTemp); // [settings] - int const iEscClose = IniSectionSetInt(L"settings", L"escclose", (Settings.EscFunction == 2) ? 1 : 0); - IniSectionSetInt(L"settings", L"escclose", iEscClose); - int const iBackupFolder = IniSectionSetInt(L"settings", L"backupinfolder", 1); - IniSectionSetInt(L"settings", L"backupinfolder", iBackupFolder); + bool const bEscClose = IniSectionGetBool(L"settings", L"escclose", (Settings.EscFunction == 2)); + IniSectionSetBool(L"settings", L"escclose", bEscClose); + bool const bBackupInFolder = IniSectionGetBool(L"settings", L"backupinfolder", true); + IniSectionSetBool(L"settings", L"backupinfolder", bBackupInFolder); // search directory WCHAR tchSearchDir[MAX_PATH] = { L'\0' };