summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/globals.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-23 18:57:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-23 18:57:33 +0000
commit4535f8706bbb0844fdddd73e7911606d58b7502d (patch)
tree1fc87230e575fe90294a7f8170f9197b2416ff41 /plugins/TabSRMM/src/globals.cpp
parent3c0dcc2b03f6713b9c1906b3960801bcdf05666a (diff)
direct access to META_PROTO removed from tabSRMM
git-svn-id: http://svn.miranda-ng.org/main/trunk@9927 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/globals.cpp')
-rw-r--r--plugins/TabSRMM/src/globals.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp
index 1d0284ce35..c2216f2caa 100644
--- a/plugins/TabSRMM/src/globals.cpp
+++ b/plugins/TabSRMM/src/globals.cpp
@@ -140,8 +140,6 @@ void CGlobals::reloadSystemModulesChanged()
g_iButtonsBarGap = M.GetByte("ButtonsBarGap", 1);
m_hwndClist = (HWND)CallService(MS_CLUI_GETHWND, 0, 0);
- bMetaEnabled = abs(M.GetByte(META_PROTO, "Enabled", -1));
-
g_PopupAvail = ServiceExists(MS_POPUP_ADDPOPUPT);
CLISTMENUITEM mi = { sizeof(mi) };
@@ -374,6 +372,7 @@ int CGlobals::ModulesLoaded(WPARAM wParam, LPARAM lParam)
HookEvent(ME_FONT_RELOAD, ::FontServiceFontsChanged);
HookEvent(ME_TTB_MODULELOADED, TopToolbarLoaded);
+ HookEvent(ME_MC_ENABLED, &CContactCache::cacheUpdateMetaChanged);
HookEvent(ME_MC_DEFAULTTCHANGED, MetaContactEvent);
HookEvent(ME_MC_SUBCONTACTSCHANGED, MetaContactEvent);
return 0;
@@ -424,13 +423,6 @@ int CGlobals::DBSettingChanged(WPARAM hContact, LPARAM lParam)
}
}
- if (hContact == 0 && !lstrcmpA(setting, "Enabled")) {
- if (!lstrcmpA(cws->szModule, META_PROTO)) { // catch the disabled meta contacts
- PluginConfig.bMetaEnabled = abs(M.GetByte(META_PROTO, "Enabled", -1));
- CContactCache::cacheUpdateMetaChanged();
- }
- }
-
if (lstrcmpA(cws->szModule, "CList") && (szProto == NULL || lstrcmpA(cws->szModule, szProto)))
return 0;