summaryrefslogtreecommitdiff
path: root/src/modules/database/database.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/database/database.cpp')
-rw-r--r--src/modules/database/database.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp
index aa0c86045c..74a110ee2f 100644
--- a/src/modules/database/database.cpp
+++ b/src/modules/database/database.cpp
@@ -306,7 +306,15 @@ static int getProfile(TCHAR *szProfile, size_t cch)
LBL_Show:
pd.szProfile = szProfile;
pd.szProfileDir = g_profileDir;
- return getProfileManager(&pd);
+ if (!getProfileManager(&pd))
+ return 0;
+
+ if (!pd.bRun) {
+ CallService(MS_DB_CHECKPROFILE, WPARAM(szProfile), 0);
+ return 0;
+ }
+
+ return 1;
}
if (getProfileAutoRun(szProfile))