diff options
author | George Hazan <george.hazan@gmail.com> | 2023-07-11 12:54:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-07-11 12:54:46 +0300 |
commit | e7ffc3ec2f0fe9876d160caf89682378438adaaa (patch) | |
tree | 421bce0d1dc3826f5d13a57ee1c235bcc68fd459 /src | |
parent | 7160ef85c883d4ad171d9258df142484b55d14fc (diff) |
fixes #3571 (Добавить ссылку на закачку драйвера базы)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/database.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp index eceaf19839..906249c260 100644 --- a/src/mir_app/src/database.cpp +++ b/src/mir_app/src/database.cpp @@ -481,7 +481,7 @@ static int OnModulesLoaded(WPARAM, LPARAM) /////////////////////////////////////////////////////////////////////////////////////////
-static wchar_t tszNoDrivers[] = LPGENW("Miranda is unable to open '%s' because you do not have any profile plugins installed.\nYou need to install dbx_sqlite.dll");
+static wchar_t tszNoDrivers[] = LPGENW("Miranda is unable to open '%s' because you do not have any profile plugins installed.\nPress Yes to install DBX_Sqlite or Cancel to exit");
static wchar_t tszUnknownFormat[] = LPGENW("Miranda was unable to open '%s', it's in an unknown format.");
static wchar_t tszProfileLocked[] = LPGENW("Miranda was unable to open '%s'\nIt's inaccessible or used by other application or Miranda instance");
static wchar_t tszNoSuitableDriver[] = LPGENW("Miranda was unable to open '%s'\nThere is no suitable database driver installed");
@@ -501,9 +501,9 @@ int LoadDatabaseModule(void) ptszFileName = (ptszFileName) ? ptszFileName + 1 : szProfile.c_str();
if (arDbPlugins.getCount() == 0) {
- MessageBoxW(nullptr,
- CMStringW(FORMAT, TranslateW(tszNoDrivers), ptszFileName),
- TranslateT("No profile support installed!"), MB_OK | MB_ICONERROR);
+ CMStringW wszError(FORMAT, TranslateW(tszNoDrivers), ptszFileName);
+ if (IDYES == MessageBoxW(nullptr, wszError, TranslateT("No profile support installed!"), MB_YESNOCANCEL | MB_ICONERROR))
+ Utils_OpenUrl("https://miranda-ng.org/p/Dbx_sqlite");
return 1;
}
|