summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-05-26 00:20:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-05-26 00:20:25 +0300
commit049be2b2e344fc9e2ff72ca237d907401fcb051f (patch)
tree062dff423b1f0802fd0d29061805065749fe8259 /plugins/TabSRMM/src
parent3a27b129faf09c13f67ea31bcac6764d5c45e7ec (diff)
tabSRMM: tab icon isn't changing when a status changes
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp3
-rw-r--r--plugins/TabSRMM/src/msgs.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 74f738dd77..6d7abf92cd 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -1018,6 +1018,8 @@ void CSrmmWindow::UpdateTitle()
if (mir_wstrcmp(newtitle, m_wszTitle))
bChanged = true;
+ else if (m_wStatus != m_wOldStatus)
+ bChanged = true;
SendMessage(m_hwnd, DM_UPDATEWINICON, 0, 0);
@@ -1036,6 +1038,7 @@ void CSrmmWindow::UpdateTitle()
}
else wcsncpy_s(newtitle, L"Message Session", _TRUNCATE);
+ m_wOldStatus = m_wStatus;
if (m_idle != dwOldIdle || bChanged) {
if (bChanged) {
item.mask |= TCIF_TEXT;
diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h
index 3baad84fa4..def537f926 100644
--- a/plugins/TabSRMM/src/msgs.h
+++ b/plugins/TabSRMM/src/msgs.h
@@ -261,7 +261,7 @@ protected:
void VerifyProxy();
LRESULT WMCopyHandler(UINT uMsg, WPARAM wParam, LPARAM lParam);
- WORD m_wStatus;
+ WORD m_wStatus, m_wOldStatus;
size_t m_iSendBufferSize;
int m_iSendLength; // message length in utf-8 octets
HICON m_hSmileyIcon;