diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-07-20 11:57:16 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-07-20 11:57:16 +0000 |
commit | 9eec36be7219420fcfa41e7d66397617c4279ff2 (patch) | |
tree | 68992c6d07530e37a661a37eaf6f8cd65f3895a9 /plugins/ProfileManager/src/pmanagerEx.cpp | |
parent | 418b3d07fab521103909ab0a985ababb2855efec (diff) |
Do not create 'database check' menu item if dbchecker.dll is not found
git-svn-id: http://svn.miranda-ng.org/main/trunk@9882 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ProfileManager/src/pmanagerEx.cpp')
-rw-r--r-- | plugins/ProfileManager/src/pmanagerEx.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ProfileManager/src/pmanagerEx.cpp b/plugins/ProfileManager/src/pmanagerEx.cpp index 0db2b21155..5bf54d964f 100644 --- a/plugins/ProfileManager/src/pmanagerEx.cpp +++ b/plugins/ProfileManager/src/pmanagerEx.cpp @@ -99,6 +99,8 @@ static int OnModulesLoaded(WPARAM, LPARAM) mi.pszPopupName = LPGEN("Database");
for (int i = 0; i < SIZEOF(iconList); i++) {
+ if (i == 2 && !ServiceExists(MS_DB_CHECKPROFILE))
+ continue;
mi.pszName = iconList[i].szDescr;
mi.pszService = iconList[i].szName;
mi.icolibItem = iconList[i].hIcolib;
|