summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-06-08 19:37:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-06-08 19:37:22 +0300
commit28df550d24979753fe8743e22a71defd89e6bbd7 (patch)
treebf98b41d6295b6680c5eb8cd9a7c63daaf6a4eda
parent5d015a0fe9f9cd063f3d823726d5535e8e0cac2f (diff)
StdMsg: a chat should update a window title only if it's active
-rw-r--r--src/core/stdmsg/src/chat_window.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/stdmsg/src/chat_window.cpp b/src/core/stdmsg/src/chat_window.cpp
index 86662eaac5..c8e23c46b8 100644
--- a/src/core/stdmsg/src/chat_window.cpp
+++ b/src/core/stdmsg/src/chat_window.cpp
@@ -369,7 +369,8 @@ void CChatRoomDlg::UpdateTitle()
break;
}
- SetWindowText(m_pOwner->GetHwnd(), szTemp);
+ if (this == m_pOwner->CurrPage())
+ SetWindowText(m_pOwner->GetHwnd(), szTemp);
}
/////////////////////////////////////////////////////////////////////////////////////////