summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/database.cpp5
-rw-r--r--src/mir_app/src/profilemanager.cpp2
-rw-r--r--src/mir_app/src/profilemanager.h2
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;