From 3269e1db8b4365187485d600cb2ebdda4894996a Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Wed, 13 Apr 2016 04:49:56 +0000 Subject: VKontakte: radiobox group settings -> combobox (patch by MikalaiR, edited) remove unneeded methods git-svn-id: http://svn.miranda-ng.org/main/trunk@16634 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_struct.cpp | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'protocols/VKontakte/src/vk_struct.cpp') diff --git a/protocols/VKontakte/src/vk_struct.cpp b/protocols/VKontakte/src/vk_struct.cpp index 7d04d03ea1..8abcc68bb9 100644 --- a/protocols/VKontakte/src/vk_struct.cpp +++ b/protocols/VKontakte/src/vk_struct.cpp @@ -229,28 +229,9 @@ CVKOptions::CVKOptions(PROTO_INTERFACE *proto) : iInvisibleInterval(proto, "InvisibleInterval", 10), iMaxFriendsCount(proto, "MaxFriendsCount", 1000), - ptszDefaultGroup(NULL), - ptszReturnChatMessage(NULL), - ptszVKLang(NULL), + ptszDefaultGroup(proto, "ProtoGroup", _T("VKontakte")), + ptszReturnChatMessage(proto, "ReturnChatMessage", TranslateT("I\'m back")), + ptszVKLang(proto, "VKLang", NULL) - m_proto((CVkProto*)proto) - -{ - ReloadStrings(); -} - -void CVKOptions::ReloadStrings() { - if (!m_proto) - return; - - ptszDefaultGroup = m_proto->getTStringA("ProtoGroup"); - ptszReturnChatMessage = m_proto->getTStringA("ReturnChatMessage"); - ptszVKLang = m_proto->getTStringA("VKLang"); - - if (IsEmpty(ptszDefaultGroup)) - ptszDefaultGroup = mir_tstrdup(_T("VKontakte")); - - if (IsEmpty(ptszReturnChatMessage)) - ptszReturnChatMessage = mir_tstrdup(TranslateT("I\'m back")); } -- cgit v1.2.3