diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-09-20 18:57:33 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-09-20 18:57:33 +0000 |
commit | 6c21b8918e51b66845f2555c8e3e4dc7d7a3b749 (patch) | |
tree | 16465c44f8be467404fbe992754e24dd27bf8f86 /protocols/Tox/src/tox_options.cpp | |
parent | 50445999b29be69be5c9eb0e3fe340d317a0b600 (diff) |
Tox:
- tox id is string again (h8!!)
- updated tox core
git-svn-id: http://svn.miranda-ng.org/main/trunk@10537 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_options.cpp')
-rw-r--r-- | protocols/Tox/src/tox_options.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp index 081da9d7b0..f137c8e738 100644 --- a/protocols/Tox/src/tox_options.cpp +++ b/protocols/Tox/src/tox_options.cpp @@ -15,15 +15,8 @@ INT_PTR CToxProto::MainOptionsProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l ptrW nick(proto->getTStringA("Nick"));
SetDlgItemText(hwnd, IDC_NAME, nick);
- DBVARIANT dbv;
- ;
- if (!db_get(NULL, proto->m_szModuleName, TOX_SETTINGS_ID, &dbv))
- {
- std::vector<uint8_t> address(dbv.pbVal, dbv.pbVal + TOX_FRIEND_ADDRESS_SIZE);
- std::string toxId = proto->DataToHexString(address);
- SetDlgItemTextA(hwnd, IDC_TOXID, toxId.c_str());
- db_free(&dbv);
- }
+ std::string address = proto->getStringA(NULL, TOX_SETTINGS_ID);
+ SetDlgItemTextA(hwnd, IDC_TOXID, address.c_str());
ptrW group(proto->getTStringA(TOX_SETTINGS_GROUP));
SetDlgItemText(hwnd, IDC_GROUP, group);
|