summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/globals.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-06 08:33:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-06 08:33:44 +0000
commitfbed4e49ff41a49e2b8b09e0ccc1268aeffbada1 (patch)
tree54c8ef840bbbbc2f12faf3c00700adb1b2741ff9 /plugins/TabSRMM/src/globals.cpp
parente2a9e8224e94127cc73cf62ebfb2a8dfee078c0c (diff)
- DoTrimMessage removed and replaced with rtrim()
- contactcache.cpp moved from a linked list to a sorted list git-svn-id: http://svn.miranda-ng.org/main/trunk@5598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/globals.cpp')
-rw-r--r--plugins/TabSRMM/src/globals.cpp34
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.
*