summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-01-06 14:46:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-01-06 14:46:56 +0000
commit6c1cfef09c988e954870489814cf07d1e80794c4 (patch)
tree411755880f2c91a3ff335eada4ec5bc16c95164a /src/modules
parent549ed895feab112fc08a1e9190791a80b089914b (diff)
fix for the status bar options dialog
git-svn-id: http://svn.miranda-ng.org/main/trunk@2996 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/clist/protocolorder.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/clist/protocolorder.cpp b/src/modules/clist/protocolorder.cpp
index 3aae5a685f..b74ef1105d 100644
--- a/src/modules/clist/protocolorder.cpp
+++ b/src/modules/clist/protocolorder.cpp
@@ -125,7 +125,11 @@ int FillTree(HWND hwnd)
continue;
PROTOACCOUNT *pa = accounts[idx];
- if ( !cli.pfnGetProtocolVisibility(pa->szModuleName))
+ if ( !Proto_IsAccountEnabled(pa))
+ continue;
+
+ PROTOCOLDESCRIPTOR *pd = Proto_IsProtocolLoaded(pa->szProtoName);
+ if (pd == NULL || pd->type != PROTOTYPE_PROTOCOL)
continue;
ProtocolData *PD = (ProtocolData*)mir_alloc(sizeof(ProtocolData));