summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_options.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2016-08-11 17:30:58 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2016-08-11 17:30:58 +0000
commitb78e769632abed8e8d56f34a7b1bf95258ddba72 (patch)
treebf88880bee0aef198b10c46da258295c6485015e /protocols/VKontakte/src/vk_options.cpp
parent9fe0299dba608b50b2519d67cca92840458154f5 (diff)
VKontakte:
fix vkLang list default item index fix creating left chats git-svn-id: http://svn.miranda-ng.org/main/trunk@17178 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_options.cpp')
-rw-r--r--protocols/VKontakte/src/vk_options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_options.cpp b/protocols/VKontakte/src/vk_options.cpp
index 0f6d9067c1..01629da714 100644
--- a/protocols/VKontakte/src/vk_options.cpp
+++ b/protocols/VKontakte/src/vk_options.cpp
@@ -186,9 +186,9 @@ void CVkOptionAccountForm::OnInitDialog()
iListIndex = 0;
for (size_t i = 0; i < _countof(vkLangCodes); i++) {
- int cur = m_cbxVKLang.AddString(TranslateW(vkLangCodes[i].szDescription), (LPARAM)vkLangCodes[i].szCode);
+ m_cbxVKLang.InsertString(TranslateW(vkLangCodes[i].szDescription), i, (LPARAM)vkLangCodes[i].szCode);
if (!mir_wstrcmpi(vkLangCodes[i].szCode, m_proto->m_vkOptions.pwszVKLang))
- iListIndex = cur;
+ iListIndex = i;
}
m_cbxVKLang.SetCurSel(iListIndex);