From 9613f96e6a6f96ad02a0fc926054132811ae2bb1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Apr 2018 16:30:25 +0300 Subject: Accounts() : iterator for accounts --- plugins/Import/src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/Import/src/main.cpp') diff --git a/plugins/Import/src/main.cpp b/plugins/Import/src/main.cpp index 86706d178a..3e6a15fdfb 100644 --- a/plugins/Import/src/main.cpp +++ b/plugins/Import/src/main.cpp @@ -94,10 +94,7 @@ static int ModulesLoaded(WPARAM, LPARAM) if (!db_get_b(NULL, IMPORT_MODULE, IMP_KEY_FR, 0)) { // Only autorun import wizard if at least one protocol is installed - int nProtocols = 0; - PROTOACCOUNT **ppProtos = nullptr; - Proto_EnumAccounts(&nProtocols, &ppProtos); - if (nProtocols > 0) { + if (Accounts().getCount() > 0) { CallService(IMPORT_SERVICE, 0, 0); db_set_b(NULL, IMPORT_MODULE, IMP_KEY_FR, 1); } -- cgit v1.2.3