From 0e53afe70be1876fd69bc171f81b22869f462b0e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Aug 2014 18:13:20 +0000 Subject: - fixing nicks update in the window's caption; - fixing the real proto name git-svn-id: http://svn.miranda-ng.org/main/trunk@10031 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/contactcache.cpp | 3 +++ plugins/TabSRMM/src/globals.cpp | 2 +- plugins/TabSRMM/src/infopanel.cpp | 3 +-- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index 68078159fd..93fbca70d0 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -156,6 +156,9 @@ void CContactCache::updateMeta() m_hSub = db_mc_getSrmmSub(cc->contactID); m_szMetaProto = GetContactProto(m_hSub); m_wMetaStatus = (WORD)db_get_w(m_hSub, m_szMetaProto, "Status", ID_STATUS_OFFLINE); + PROTOACCOUNT *pa = ProtoGetAccount(m_szMetaProto); + if (pa) + m_szAccount = pa->tszAccountName; if (hOldSub != m_hSub) { updateStatus(); diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp index eeef4a4f38..c909370dbb 100644 --- a/plugins/TabSRMM/src/globals.cpp +++ b/plugins/TabSRMM/src/globals.cpp @@ -497,7 +497,7 @@ int CGlobals::MetaContactEvent(WPARAM hContact, LPARAM lParam) if (c) { c->updateMeta(); if (c->getHwnd()) { - ::PostMessage(c->getHwnd(), DM_UPDATETITLE, 0, 0); + ::PostMessage(c->getHwnd(), DM_UPDATETITLE, 0, 1); ::PostMessage(c->getHwnd(), DM_UPDATEPICLAYOUT, 0, 0); } } diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp index c34d587500..06878b606e 100644 --- a/plugins/TabSRMM/src/infopanel.cpp +++ b/plugins/TabSRMM/src/infopanel.cpp @@ -131,8 +131,7 @@ void CInfoPanel::saveHeight(bool fFlush) } } } - else - db_set_dw(m_dat->hContact, SRMSGMOD_T, "panelheight", MAKELONG(m_height, 0xffff)); + else db_set_dw(m_dat->hContact, SRMSGMOD_T, "panelheight", MAKELONG(m_height, 0xffff)); } } -- cgit v1.2.3