From 3931357b9e97885153cf732ea1b85b8118834c14 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Sep 2012 15:00:55 +0000 Subject: last account disabling crashes Clist Modern git-svn-id: http://svn.miranda-ng.org/main/trunk@1653 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_statusbar.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Clist_modern/src') diff --git a/plugins/Clist_modern/src/modern_statusbar.cpp b/plugins/Clist_modern/src/modern_statusbar.cpp index 81f40b4bd2..5d35f09460 100644 --- a/plugins/Clist_modern/src/modern_statusbar.cpp +++ b/plugins/Clist_modern/src/modern_statusbar.cpp @@ -286,6 +286,9 @@ int ModernDrawStatusBarWorker(HWND hWnd, HDC hDC) ProtosData.insert(p); } + if ( ProtosData.getCount() == 0) + return 0; + //START MULTILINE HERE int orig_protoCount = protoCount; int orig_visProtoCount = ProtosData.getCount(); -- cgit v1.2.3