summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-09-21 21:15:34 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-09-21 21:15:34 +0000
commitdde8a903731848145c6f05a51aea57771c2ef006 (patch)
treedf454eb4690d8b25425f6d39ea6a5930621f13c5 /plugins/Clist_modern/src
parent22bdf4d623a3e37f8b32dbcca437df37906a9ae5 (diff)
Check if Toptoolbar already in the plugin list
git-svn-id: http://svn.miranda-ng.org/main/trunk@1628 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r--plugins/Clist_modern/src/hdr/modern_commonheaders.h1
-rw-r--r--plugins/Clist_modern/src/modern_toolbar.cpp9
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/hdr/modern_commonheaders.h b/plugins/Clist_modern/src/hdr/modern_commonheaders.h
index 0fd21dffd8..d577b431a7 100644
--- a/plugins/Clist_modern/src/hdr/modern_commonheaders.h
+++ b/plugins/Clist_modern/src/hdr/modern_commonheaders.h
@@ -111,6 +111,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_fontservice.h>
#include <m_file.h>
#include <m_timezones.h>
+#include <m_toptoolbar.h>
#include "modern_clc.h"
#include "modern_clist.h"
diff --git a/plugins/Clist_modern/src/modern_toolbar.cpp b/plugins/Clist_modern/src/modern_toolbar.cpp
index 9118a60a65..9b7101b216 100644
--- a/plugins/Clist_modern/src/modern_toolbar.cpp
+++ b/plugins/Clist_modern/src/modern_toolbar.cpp
@@ -346,10 +346,11 @@ HRESULT ToolbarLoadModule()
CallService(MS_DB_MODULE_DELETE, 0, (LPARAM)"ModernToolBar");
- if (bOldSetting == 1)
- if (IDYES == MessageBox(NULL, TranslateTS(szWarning), TranslateT("Toolbar upgrade"), MB_ICONQUESTION | MB_YESNO))
- CallService(MS_UTILS_OPENURL, 0, (LPARAM)szUrl);
- }
+ if ( !ServiceExists( MS_TTB_REMOVEBUTTON)) {
+ if (bOldSetting == 1)
+ if (IDYES == MessageBox(NULL, TranslateTS(szWarning), TranslateT("Toolbar upgrade"), MB_ICONQUESTION | MB_YESNO))
+ CallService(MS_UTILS_OPENURL, 0, (LPARAM)szUrl);
+ } }
ehhToolBarBackgroundSettingsChanged(0,0);
HookEvent(ME_SYSTEM_MODULESLOADED, Toolbar_ModulesLoaded);