summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-25 15:43:12 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-25 15:43:12 +0300
commit5b53a45fd65e78f34eb77dea268c591d675cfec3 (patch)
tree785d16f80848a937ef5cb70972af94f8f2c24829 /src
parent0f9e1002ec21154bc476fbfeab0d21f796515823 (diff)
StdUserInfo: fix for "Update" button behavior
Diffstat (limited to 'src')
-rw-r--r--src/core/stduserinfo/src/userinfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/stduserinfo/src/userinfo.cpp b/src/core/stduserinfo/src/userinfo.cpp
index f3c28024b0..d843147daf 100644
--- a/src/core/stduserinfo/src/userinfo.cpp
+++ b/src/core/stduserinfo/src/userinfo.cpp
@@ -138,7 +138,8 @@ class CUserInfoDlg : public CDlgBase
hIcolib = (HANDLE)it->lParam;
else if (it->szProto)
hIcolib = Skin_GetProtoIcon(it->szProto, ID_STATUS_ONLINE);
- else if (hContact)
+
+ if (hContact && !it->szProto)
it->szProto = Proto_GetBaseAccountName(hContact);
if (hIcolib) {