From 14001c799e72b8eefa523f8ff7ce44c443c78db8 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 14 Aug 2014 19:35:01 +0000 Subject: Tox: now you can add contacts from find/add dialog git-svn-id: http://svn.miranda-ng.org/main/trunk@10183 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_options.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Tox/src/tox_options.cpp') diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp index 7f5fd47824..f4eb2e6e5d 100644 --- a/protocols/Tox/src/tox_options.cpp +++ b/protocols/Tox/src/tox_options.cpp @@ -24,7 +24,7 @@ INT_PTR CALLBACK CToxProto::MainOptionsProc(HWND hwnd, UINT uMsg, WPARAM wParam, } SetDlgItemTextA(hwnd, IDC_DATAPATH, dataPath); - ptrW groupName(proto->getWStringA(NULL, "DefaultGroup")); + ptrW groupName(proto->getTStringA(TOX_SETTINGS_DEFAULT_GROUP)); SetDlgItemText(hwnd, IDC_GROUP, groupName); SendDlgItemMessage(hwnd, IDC_GROUP, EM_LIMITTEXT, 64, 0); @@ -116,11 +116,11 @@ INT_PTR CALLBACK CToxProto::MainOptionsProc(HWND hwnd, UINT uMsg, WPARAM wParam, GetDlgItemText(hwnd, IDC_GROUP, groupName, SIZEOF(groupName)); if (lstrlen(groupName) > 0) { - proto->setWString(NULL, "DefaultGroup", groupName); + proto->setWString(NULL, TOX_SETTINGS_DEFAULT_GROUP, groupName); Clist_CreateGroup(0, groupName); } else - proto->delSetting(NULL, "DefaultGroup"); + proto->delSetting(NULL, TOX_SETTINGS_DEFAULT_GROUP); return TRUE; } -- cgit v1.2.3