diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-15 21:57:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-15 21:57:35 +0300 |
commit | 69cbd0fd851cde4973344d9a80c6965a571fbe69 (patch) | |
tree | 343604a4139eb6922e3c6bc7f51c86f0bf20290b /src | |
parent | 59e6b15f513cc998ce13e9e49e2a6a3ace445ebb (diff) |
more intelligent solution for #1186 (Hide DbChecker from VersionInfo)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/database.cpp | 5 | ||||
-rw-r--r-- | src/mir_app/src/profilemanager.cpp | 2 | ||||
-rw-r--r-- | src/mir_app/src/profilemanager.h | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp index 939599aafc..1e02f0d009 100644 --- a/src/mir_app/src/database.cpp +++ b/src/mir_app/src/database.cpp @@ -32,7 +32,6 @@ DATABASELINK *currDblink = nullptr; bool g_bDbCreated;
wchar_t g_profileDir[MAX_PATH], g_profileName[MAX_PATH], g_shortProfileName[MAX_PATH];
wchar_t* g_defaultProfile;
-void EnsureCheckerLoaded(bool);
bool fileExist(const wchar_t *fname)
{
@@ -528,7 +527,9 @@ int LoadDatabaseModule(void) }
} while (retry);
- EnsureCheckerLoaded(false); // unload dbchecker
+ // if there is a service mode plugin to start, disable dbchecker
+ if (mir_wstrlen(CmdLine_GetOption(L"svc")) > 0)
+ EnsureCheckerLoaded(false); // unload dbchecker
if (rc == ERROR_SUCCESS) {
InitIni();
diff --git a/src/mir_app/src/profilemanager.cpp b/src/mir_app/src/profilemanager.cpp index 9da0261e13..48d7d71451 100644 --- a/src/mir_app/src/profilemanager.cpp +++ b/src/mir_app/src/profilemanager.cpp @@ -30,8 +30,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #pragma warning(disable : 4512) -void EnsureCheckerLoaded(bool); - #define WM_INPUTCHANGED (WM_USER + 0x3000) #define WM_FOCUSTEXTBOX (WM_USER + 0x3001) diff --git a/src/mir_app/src/profilemanager.h b/src/mir_app/src/profilemanager.h index da5001b4f5..41b1df15de 100644 --- a/src/mir_app/src/profilemanager.h +++ b/src/mir_app/src/profilemanager.h @@ -43,5 +43,7 @@ int isValidProfileName(const wchar_t *name); bool fileExist(const wchar_t *fname);
bool shouldAutoCreate(wchar_t *szProfile);
+void EnsureCheckerLoaded(bool);
+
extern wchar_t g_profileDir[MAX_PATH], g_profileName[MAX_PATH], g_shortProfileName[MAX_PATH];
extern bool g_bDbCreated;
|