From f23c4efb369478c7f8d42120c10a11f578ae3c34 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 17 Feb 2015 17:13:11 +0000 Subject: added button for import import dialog removed git-svn-id: http://svn.miranda-ng.org/main/trunk@12167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_accounts.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'protocols/Tox/src/tox_accounts.cpp') 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; } -- cgit v1.2.3