From e7ffc3ec2f0fe9876d160caf89682378438adaaa Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Jul 2023 12:54:46 +0300 Subject: =?UTF-8?q?fixes=20#3571=20(=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D1=83=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B7=D0=B0=D0=BA=D0=B0=D1=87=D0=BA=D1=83=20=D0=B4?= =?UTF-8?q?=D1=80=D0=B0=D0=B9=D0=B2=D0=B5=D1=80=D0=B0=20=D0=B1=D0=B0=D0=B7?= =?UTF-8?q?=D1=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/database.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3