summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-13 20:55:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-13 20:55:00 +0300
commit2530c0baecb30ca4a97b5118c6ddab02318c7ca1 (patch)
tree3f6051081807dd3b716d4b54bb022488d1aabccf /src/core
parent24a76259e2c527e107f1c1b969b501d63a8e29f5 (diff)
fixes #1354 completely (StdMsg and Scriver: add status text to window caption)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp
index a65857539a..f8271b829d 100644
--- a/src/core/stdmsg/src/msgdialog.cpp
+++ b/src/core/stdmsg/src/msgdialog.cpp
@@ -647,8 +647,9 @@ void CSrmmWindow::UpdateTitle()
if (m_hContact && m_szProto) {
m_wStatus = db_get_w(m_hContact, m_szProto, "Status", ID_STATUS_OFFLINE);
wchar_t *contactName = Clist_GetContactDisplayName(m_hContact);
+ wchar_t *szStatus = Clist_GetStatusModeDescription(m_wStatus, 0);
+ mir_snwprintf(newtitle, L"%s (%s): %s", contactName, szStatus, TranslateT("Message session"));
- mir_snwprintf(newtitle, L"%s - %s", contactName, TranslateT("Message session"));
m_wOldStatus = m_wStatus;
}
else mir_wstrncpy(newtitle, TranslateT("Message session"), _countof(newtitle));