diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-19 18:52:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-19 18:52:00 +0000 |
commit | 65c4f834ce1895cf4f3127f584458cc0af15c255 (patch) | |
tree | 23fc97a2dd5a30f36834eeb101e8c658a903ab45 /src/modules/database/database.cpp | |
parent | 1bbbc601b0bb2297c8074bdacf3d6ef6cb3491e1 (diff) |
more fixes for Profile Manager
git-svn-id: http://svn.miranda-ng.org/main/trunk@9867 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database/database.cpp')
-rw-r--r-- | src/modules/database/database.cpp | 10 |
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))
|