From 991ef9603c47195bc97f81ddb4c107c7ce107b77 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Apr 2016 17:34:02 +0000 Subject: fix for metacontacts statuses in clist git-svn-id: http://svn.miranda-ng.org/main/trunk@16598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clistsettings.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Clist_modern/src') diff --git a/plugins/Clist_modern/src/modern_clistsettings.cpp b/plugins/Clist_modern/src/modern_clistsettings.cpp index 3f0a92f59d..70e2a40fce 100644 --- a/plugins/Clist_modern/src/modern_clistsettings.cpp +++ b/plugins/Clist_modern/src/modern_clistsettings.cpp @@ -35,7 +35,6 @@ static int displayNameCacheSize; LIST clistCache(50, NumericKeySortT); -int GetStatusForContact(MCONTACT hContact, char *szProto); TCHAR* UnknownConctactTranslatedName = NULL; void InitDisplayNameCache(void) @@ -309,6 +308,7 @@ int ContactSettingChanged(WPARAM hContact, LPARAM lParam) DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam; if (!strcmp(cws->szModule, pdnce->m_pszProto)) { if (!strcmp(cws->szSetting, "Status") || wildcmp(cws->szSetting, "Status?")) { + pdnce->m_iStatus = cws->value.wVal; if (!strcmp(cws->szModule, META_PROTO) && strcmp(cws->szSetting, "Status")) { if (pcli->hwndContactTree && g_flag_bOnModulesLoadedCalled) pcli->pfnInitAutoRebuild(pcli->hwndContactTree); @@ -322,7 +322,6 @@ int ContactSettingChanged(WPARAM hContact, LPARAM lParam) if (pdnce->bIsHidden) return 0; - pdnce->m_iStatus = cws->value.wVal; if (cws->value.wVal == ID_STATUS_OFFLINE) if (g_CluiData.bRemoveAwayMessageForOffline) db_set_s(hContact, "CList", "StatusMsg", ""); -- cgit v1.2.3