diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-07 12:50:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-07 12:50:40 +0000 |
commit | c6fb861d7159279b6ee4a4dd678d4693ee56bac6 (patch) | |
tree | df911e6eaf7bd944081aae96f5df9c2ef84c2476 /plugins/IEView | |
parent | 95da57c8e9cf894adf3afae124a29d292b085c5e (diff) |
death of old nasty clutch with MS_PROTO_ENUMPROTOCOLS & PROTOACCOUNT::type
git-svn-id: http://svn.miranda-ng.org/main/trunk@1799 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView')
-rw-r--r-- | plugins/IEView/src/Options.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/IEView/src/Options.cpp b/plugins/IEView/src/Options.cpp index bc3322e5ed..08d3139304 100644 --- a/plugins/IEView/src/Options.cpp +++ b/plugins/IEView/src/Options.cpp @@ -648,10 +648,10 @@ static INT_PTR CALLBACK IEViewSRMMOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wPar case UM_CHECKSTATECHANGE:
{
ProtocolSettings *proto = (ProtocolSettings *)GetItemParam((HWND)wParam, (HTREEITEM) lParam);
- if (proto != NULL) {
+ if (proto != NULL)
if (strcmpi(proto->getProtocolName(), "_default_"))
proto->setSRMMEnableTemp( TreeView_GetCheckState((HWND)wParam, (HTREEITEM) lParam));
- }
+
if ((HTREEITEM) lParam != TreeView_GetSelection((HWND)wParam)) {
TreeView_SelectItem((HWND)wParam, (HTREEITEM) lParam);
} else {
@@ -791,11 +791,11 @@ static INT_PTR CALLBACK IEViewHistoryOptDlgProc(HWND hwndDlg, UINT msg, WPARAM w if (strcmpi(proto->getProtocolName(), "_default_"))
proto->setHistoryEnableTemp(TreeView_GetCheckState((HWND)wParam, (HTREEITEM) lParam));
- if ((HTREEITEM) lParam != TreeView_GetSelection((HWND)wParam)) {
+ if ((HTREEITEM) lParam != TreeView_GetSelection((HWND)wParam))
TreeView_SelectItem((HWND)wParam, (HTREEITEM) lParam);
- } else {
+ else
UpdateHistoryProtoInfo(hwndDlg, proto);
- }
+
MarkChanges(4, hwndDlg);
}
break;
@@ -1516,9 +1516,9 @@ void Options::init() { /* TODO: move to buildProtocolList method */
int protoCount;
- PROTOCOLDESCRIPTOR **pProtos;
+ PROTOACCOUNT **pProtos;
ProtocolSettings *lastProto = NULL;
- CallService(MS_PROTO_ENUMPROTOCOLS, (WPARAM)&protoCount, (LPARAM)&pProtos);
+ ProtoEnumAccounts(&protoCount, &pProtos);
for (int i = 0; i < protoCount+1; i++) {
ProtocolSettings *proto;
char tmpPath[MAX_PATH];
@@ -1526,11 +1526,11 @@ void Options::init() { if (i==0) {
proto = new ProtocolSettings("_default_");
proto->setSRMMEnable(true);
- } else if ((pProtos[i-1]->type == PROTOTYPE_PROTOCOL) && strcmp(pProtos[i-1]->szName,"MetaContacts")) {
- if ((CallProtoService(pProtos[i-1]->szName, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IM) == 0) {
+ } else if (strcmp(pProtos[i-1]->szModuleName,"MetaContacts")) {
+ if ((CallProtoService(pProtos[i-1]->szModuleName, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IM) == 0) {
continue;
}
- proto = new ProtocolSettings(pProtos[i-1]->szName);
+ proto = new ProtocolSettings(pProtos[i-1]->szModuleName);
} else {
continue;
}
|