diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-14 19:35:01 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-14 19:35:01 +0000 |
commit | 14001c799e72b8eefa523f8ff7ce44c443c78db8 (patch) | |
tree | f0c51ccdc39aadc4e6103cef3625a6df34678dc2 /protocols/Tox/src/tox_options.cpp | |
parent | e18bb0689bb3ff2bdd622b5feca554d7559ca8e8 (diff) |
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
Diffstat (limited to 'protocols/Tox/src/tox_options.cpp')
-rw-r--r-- | protocols/Tox/src/tox_options.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
}
|