diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-26 20:54:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-26 20:54:17 +0000 |
commit | 315ffb3628684434969b1f740860036a280dddfc (patch) | |
tree | 06519021523088cc7db59b1e0f20a52cfdddbb51 /protocols/GTalkExt/src/options.cpp | |
parent | 474dc76177b2f518f24a0800d62df97171da7c9a (diff) |
Google account autodetect
git-svn-id: http://svn.miranda-ng.org/main/trunk@4208 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/GTalkExt/src/options.cpp')
-rw-r--r-- | protocols/GTalkExt/src/options.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/protocols/GTalkExt/src/options.cpp b/protocols/GTalkExt/src/options.cpp index 7df8c2c7d3..37191383f8 100644 --- a/protocols/GTalkExt/src/options.cpp +++ b/protocols/GTalkExt/src/options.cpp @@ -20,6 +20,7 @@ //***************************************************************************************
#include "stdafx.h"
+#include "db.h"
#include "options.h"
static const LPTSTR ACCOUNT_PROP_NAME = _T("{BF447EBA-27AE-4DB7-893C-FC42A3F74D75}");
@@ -258,11 +259,14 @@ int OptionsInitialization(WPARAM wParam, LPARAM lParam) int count;
PROTOACCOUNT **accs;
CallService(MS_PROTO_ENUMACCOUNTS, (WPARAM)&count, (LPARAM)&accs);
- for (int i = 0; i < count; i++)
- if ( getJabberApi(accs[i]->szModuleName))
+ for (int i = 0; i < count; i++) {
+ IJabberInterface *ji = IsGoogleAccount(accs[i]->szModuleName);
+ if (ji)
AddAccPage(accs[i]->tszAccountName, accs[i]->szModuleName, wParam);
+ }
- if (ServiceExists(MS_POPUP_ADDPOPUPT)) AddPopupsPage(wParam);
+ if (ServiceExists(MS_POPUP_ADDPOPUPT))
+ AddPopupsPage(wParam);
return FALSE;
}
|