summaryrefslogtreecommitdiff
path: root/plugins/Clist_mw/src/contact.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-03 18:51:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-03 18:51:25 +0000
commit31582b9e959b65cb9e29c4197a42e1a7e9ca804e (patch)
tree23ed81355fc68a8b9812be0c30f20467b4c52cf4 /plugins/Clist_mw/src/contact.cpp
parentc8a4c6574f3e0894d97c67cdd45e311a42eda59f (diff)
tray icons code standardization
git-svn-id: http://svn.miranda-ng.org/main/trunk@5569 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_mw/src/contact.cpp')
-rw-r--r--plugins/Clist_mw/src/contact.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/Clist_mw/src/contact.cpp b/plugins/Clist_mw/src/contact.cpp
index 12a82ba2d5..9a818226e1 100644
--- a/plugins/Clist_mw/src/contact.cpp
+++ b/plugins/Clist_mw/src/contact.cpp
@@ -77,9 +77,11 @@ void LoadContactTree(void)
{
int tick = GetTickCount();
CallService(MS_CLUI_LISTBEGINREBUILD,0,0);
- for (int i=1;; i++)
- if ((char*)CallService(MS_CLIST_GROUPGETNAME2, i, 0) != NULL)
- CallService(MS_CLUI_GROUPADDED, i, 0);
+ for (int i=1;; i++) {
+ if ((char*)CallService(MS_CLIST_GROUPGETNAME2, i, 0) == NULL)
+ break;
+ CallService(MS_CLUI_GROUPADDED, i, 0);
+ }
int hideOffline = db_get_b(NULL,"CList","HideOffline",SETTING_HIDEOFFLINE_DEFAULT);