summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_accounts.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-02-17 17:13:11 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-02-17 17:13:11 +0000
commitf23c4efb369478c7f8d42120c10a11f578ae3c34 (patch)
tree51fa77fd68c44a7cace8f419361df093904b4095 /protocols/Tox/src/tox_accounts.cpp
parent12d3b1e94a23381d8d8f94988953340baf75dc4c (diff)
added button for import
import dialog removed git-svn-id: http://svn.miranda-ng.org/main/trunk@12167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_accounts.cpp')
-rw-r--r--protocols/Tox/src/tox_accounts.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/protocols/Tox/src/tox_accounts.cpp b/protocols/Tox/src/tox_accounts.cpp
index 369fbf5fdd..2e18334a4c 100644
--- a/protocols/Tox/src/tox_accounts.cpp
+++ b/protocols/Tox/src/tox_accounts.cpp
@@ -9,21 +9,8 @@ int CToxProto::CompareAccounts(const CToxProto *p1, const CToxProto *p2)
CToxProto* CToxProto::InitAccount(const char *protoName, const wchar_t *userName)
{
- ptrA address(db_get_sa(NULL, protoName, TOX_SETTINGS_ID));
- if (address == NULL)
- {
- if (DialogBoxParam(
- g_hInstance,
- MAKEINTRESOURCE(IDD_PROFILE_IMPORT),
- GetActiveWindow(),
- CToxProto::ToxProfileImportProc,
- (LPARAM)userName) == IDOK)
- {
- db_set_s(NULL, protoName, TOX_SETTINGS_ID, "");
- }
- }
-
CToxProto *proto = new CToxProto(protoName, userName);
+ accounts.insert(proto);
return proto;
}