summaryrefslogtreecommitdiff
path: root/plugins/ProfileManager/src
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2014-07-20 11:57:16 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2014-07-20 11:57:16 +0000
commit9eec36be7219420fcfa41e7d66397617c4279ff2 (patch)
tree68992c6d07530e37a661a37eaf6f8cd65f3895a9 /plugins/ProfileManager/src
parent418b3d07fab521103909ab0a985ababb2855efec (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')
-rw-r--r--plugins/ProfileManager/src/Common.h1
-rw-r--r--plugins/ProfileManager/src/pmanagerEx.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ProfileManager/src/Common.h b/plugins/ProfileManager/src/Common.h
index 1d8c64d6bc..e0bffbff00 100644
--- a/plugins/ProfileManager/src/Common.h
+++ b/plugins/ProfileManager/src/Common.h
@@ -3,6 +3,7 @@
#include <windows.h>
#include <newpluginapi.h>
+#include <m_database.h>
#include <m_langpack.h>
#include <m_genmenu.h>
#include <m_utils.h>
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;