summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-02 18:13:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-02 18:13:20 +0000
commit0e53afe70be1876fd69bc171f81b22869f462b0e (patch)
tree3248b8a0c5dff670ef91fca3fa35d3103d267eb0 /plugins
parent542013f69466dfd9f3a564dc5b4a9d3a331ca57c (diff)
- 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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/contactcache.cpp3
-rw-r--r--plugins/TabSRMM/src/globals.cpp2
-rw-r--r--plugins/TabSRMM/src/infopanel.cpp3
3 files changed, 5 insertions, 3 deletions
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));
}
}