summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vk_dialogs.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/vk_dialogs.cpp b/protocols/VKontakte/src/vk_dialogs.cpp
index 303592e658..5985cb390f 100644
--- a/protocols/VKontakte/src/vk_dialogs.cpp
+++ b/protocols/VKontakte/src/vk_dialogs.cpp
@@ -157,12 +157,9 @@ CVkInviteChatForm::CVkInviteChatForm(CVkProto *proto) :
void CVkInviteChatForm::OnInitDialog()
{
- for (auto &hContact : m_proto->AccContacts()) {
- if (!m_proto->isChatRoom(hContact)) {
- wchar_t *pwszNick = pcli->pfnGetContactDisplayName(hContact, 0);
- m_cbxCombo.AddString(pwszNick, hContact);
- }
- }
+ for (auto &hContact : m_proto->AccContacts())
+ if (!m_proto->isChatRoom(hContact))
+ m_cbxCombo.AddString(Clist_GetContactDisplayName(hContact), hContact);
}
void CVkInviteChatForm::btnOk_OnOk(CCtrlButton*)