diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-16 15:10:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-16 15:10:53 +0300 |
commit | d8fe65f78ea4f440a53069b43a08ab0000986d56 (patch) | |
tree | 9c865b283307eb3e4c34887eb9f05e84654d156a /protocols/JabberG/src/jabber_userinfo.cpp | |
parent | ea322d5c50ebfc21df05ced2b592e8ce16115623 (diff) |
Jabber: client info disappears if remote has the same Miranda version as me
Diffstat (limited to 'protocols/JabberG/src/jabber_userinfo.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_userinfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp index 42659c2485..7079c8a5c6 100644 --- a/protocols/JabberG/src/jabber_userinfo.cpp +++ b/protocols/JabberG/src/jabber_userinfo.cpp @@ -239,13 +239,15 @@ static void sttFillResourceInfo(CJabberProto *ppro, HWND hwndTree, HTREEITEM hti sttInfoLineId(resource, INFOLINE_SOFTWARE)); // Version + const wchar_t *wszVer = pCaps->GetSoftMir() ? pCaps->GetSoftMir() : pCaps->GetSoftVer(); sttFillInfoLine(hwndTree, htiResource, NULL, TranslateT("Version"), - pCaps->GetSoftVer() ? pCaps->GetSoftVer() : TranslateT("<not specified>"), + wszVer ? wszVer : TranslateT("<not specified>"), sttInfoLineId(resource, INFOLINE_VERSION)); // System + wszVer = pCaps->GetOsVer() ? pCaps->GetOsVer() : pCaps->GetOs(); sttFillInfoLine(hwndTree, htiResource, NULL, TranslateT("System"), - pCaps->GetOs() ? pCaps->GetOs() : TranslateT("<not specified>"), + wszVer ? wszVer : TranslateT("<not specified>"), sttInfoLineId(resource, INFOLINE_SYSTEM)); if (hIcon) |