From 9eec36be7219420fcfa41e7d66397617c4279ff2 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sun, 20 Jul 2014 11:57:16 +0000 Subject: 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 --- plugins/ProfileManager/src/Common.h | 1 + plugins/ProfileManager/src/pmanagerEx.cpp | 2 ++ 2 files changed, 3 insertions(+) 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 #include +#include #include #include #include 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; -- cgit v1.2.3