From fbed4e49ff41a49e2b8b09e0ccc1268aeffbada1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 6 Aug 2013 08:33:44 +0000 Subject: - 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 --- plugins/TabSRMM/src/globals.cpp | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'plugins/TabSRMM/src/globals.cpp') 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(); } } @@ -721,38 +721,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. -- cgit v1.2.3