From 2f73daf7c5da70dec99de350f71b71cadce82c8b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Jun 2018 17:59:09 +0300 Subject: fixes #1429 (Ability to silently upgrade database) using new Database/SilentUpgrade=1 setting in mirandaboot.ini --- plugins/Db3x_mmap/src/init.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/Db3x_mmap') diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp index 10e133a2c0..cb7f239a05 100644 --- a/plugins/Db3x_mmap/src/init.cpp +++ b/plugins/Db3x_mmap/src/init.cpp @@ -85,8 +85,9 @@ static MDatabaseCommon* LoadDatabase(const wchar_t *profile, BOOL bReadOnly) return nullptr; } - if (IDYES != MessageBoxW(nullptr, TranslateT(CONVERT_MSG), L"Miranda NG", MB_YESNO)) - return nullptr; + if (!Profile_GetSettingInt(L"Database/SilentUpgrade")) + if (IDYES != MessageBoxW(nullptr, TranslateT(CONVERT_MSG), L"Miranda NG", MB_YESNO)) + return nullptr; int errorCode; CMStringW wszBackupName(profile); -- cgit v1.2.3