diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-23 23:23:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-23 23:23:17 +0300 |
commit | d908e314c7ab4c3a6ba6dac868f48a37ea95d338 (patch) | |
tree | 911d40ca6a5294a78ee938def558195add3c9500 /plugins/Db3x_mmap | |
parent | d1f521b945ad56a7ca399204e01acea593ad18f5 (diff) |
MB_YESNOCANCEL => MB_YESNO
Diffstat (limited to 'plugins/Db3x_mmap')
-rw-r--r-- | plugins/Db3x_mmap/src/init.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp index 0910d0a1b2..78647cf8f3 100644 --- a/plugins/Db3x_mmap/src/init.cpp +++ b/plugins/Db3x_mmap/src/init.cpp @@ -65,8 +65,8 @@ static int grokHeader(const wchar_t *profile) // returns 0 if all the APIs are injected otherwise, 1
#define CONVERT_MSG LPGEN("This database is in old format that isn't supported anymore. Press Yes to convert it to the new format or No to return back")
-#define MISSING_DB_MSG LPGEN("To open this database you need to install the dbx_mdbx plugin. Click Yes to download it from Miranda NG's site")
-#define MISSING_PLUG_MSG LPGEN("To open this database you need to install the Import plugin. Click Yes to download it from Miranda NG's site")
+#define MISSING_DB_MSG LPGEN("To open this database you need to install the dbx_mdbx plugin. Click Yes to download it from Miranda NG's site or No to return back")
+#define MISSING_PLUG_MSG LPGEN("To open this database you need to install the Import plugin. Click Yes to download it from Miranda NG's site or No to return back")
static MDatabaseCommon* LoadDatabase(const wchar_t *profile, BOOL bReadOnly)
{
@@ -78,12 +78,12 @@ static MDatabaseCommon* LoadDatabase(const wchar_t *profile, BOOL bReadOnly) if (!bReadOnly) {
DATABASELINK *pLink = GetDatabasePlugin("dbx_mdbx");
if (pLink == nullptr) {
- if (IDYES == MessageBoxW(nullptr, TranslateT(MISSING_DB_MSG), L"Miranda NG", MB_YESNOCANCEL))
+ if (IDYES == MessageBoxW(nullptr, TranslateT(MISSING_DB_MSG), L"Miranda NG", MB_YESNO))
Utils_OpenUrl("https://wiki.miranda-ng.org/index.php?title=Plugin:Dbx_mdbx");
return nullptr;
}
- if (IDYES != MessageBoxW(nullptr, TranslateT(CONVERT_MSG), L"Miranda NG", MB_YESNOCANCEL))
+ if (IDYES != MessageBoxW(nullptr, TranslateT(CONVERT_MSG), L"Miranda NG", MB_YESNO))
return nullptr;
int errorCode;
@@ -103,7 +103,7 @@ LBL_Error: }
if (SetServiceModePlugin(L"import") != SERVICE_ONLYDB) {
- if (IDYES == MessageBoxW(nullptr, TranslateT(MISSING_PLUG_MSG), L"Miranda NG", MB_OK))
+ if (IDYES == MessageBoxW(nullptr, TranslateT(MISSING_PLUG_MSG), L"Miranda NG", MB_YESNO))
Utils_OpenUrl("https://wiki.miranda-ng.org/index.php?title=Plugin:Import");
goto LBL_Error;
}
|