diff options
Diffstat (limited to 'plugins/TabSRMM/src/globals.cpp')
-rw-r--r-- | plugins/TabSRMM/src/globals.cpp | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp index be420b1552..b44b52423e 100644 --- a/plugins/TabSRMM/src/globals.cpp +++ b/plugins/TabSRMM/src/globals.cpp @@ -467,7 +467,7 @@ int CGlobals::DBSettingChanged(WPARAM wParam, LPARAM lParam) if (wParam == 0 && !lstrcmpA(setting, "Enabled")) {
if (PluginConfig.g_MetaContactsAvail && !lstrcmpA(cws->szModule, PluginConfig.szMetaName)) { // catch the disabled meta contacts
PluginConfig.bMetaEnabled = abs(M.GetByte(PluginConfig.szMetaName, "Enabled", -1));
- cacheUpdateMetaChanged();
+ CContactCache::cacheUpdateMetaChanged();
}
}
@@ -722,38 +722,6 @@ void CGlobals::logStatusChange(WPARAM wParam, const CContactCache *c) }
/**
- * when the state of the meta contacts protocol changes from enabled to disabled
- * (or vice versa), this updates the contact cache
- *
- * it is ONLY called from the DBSettingChanged() event handler when the relevant
- * database value is touched.
- */
-void CGlobals::cacheUpdateMetaChanged()
-{
- CContactCache* c = CContactCache::m_cCache;
- bool fMetaActive = (PluginConfig.g_MetaContactsAvail && PluginConfig.bMetaEnabled) ? true : false;
-
- while(c) {
- if (c->isMeta() && PluginConfig.bMetaEnabled == false) {
- c->closeWindow();
- c->resetMeta();
- }
-
- // meta contacts are enabled, but current contact is a subcontact - > close window
-
- if (fMetaActive && c->isSubContact())
- c->closeWindow();
-
- // reset meta contact information, if metacontacts protocol became avail
-
- if (fMetaActive && !strcmp(c->getProto(), PluginConfig.szMetaName))
- c->resetMeta();
-
- c = c->m_next;
- }
-}
-
-/**
* on Windows 7, when using new task bar features (grouping mode and per tab
* previews), autoswitching does not work relieably, so it is disabled.
*
|