diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-04 15:59:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-04 15:59:17 +0300 |
commit | dc813825f1abbaccc929a21d0ca98807d912aa4e (patch) | |
tree | b0b1218e1b27f23d9c3d9e17f22be5795f21be20 /src/core/stdmsg | |
parent | 7c1c38df3d1ff4a316ffabb769f718f8af38a9ad (diff) |
fixes #2042 (StdMsg: window icon remains gray after entering a groupchat)
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 90e59305c2..5cb644f9a4 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -945,20 +945,19 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) break;
case DM_UPDATETITLE:
- if (isChat()) {
- if (lParam == 0 || lParam == (LPARAM)m_hContact)
- UpdateTitle();
- }
- else {
- if (lParam != 0) {
+ if (lParam != 0) {
+ if (isChat()) {
+ if (lParam != m_hContact)
+ break;
+ }
+ else {
bool bIsMe = (lParam == m_hContact) || (m_bIsMeta && db_mc_getMeta(lParam) == m_hContact);
if (!bIsMe)
break;
}
-
- UpdateIcon(wParam);
- UpdateTitle();
}
+ UpdateIcon(wParam);
+ UpdateTitle();
break;
case DM_STATUSICONCHANGE:
|