diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-25 15:00:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-25 15:00:55 +0000 |
commit | 3931357b9e97885153cf732ea1b85b8118834c14 (patch) | |
tree | ace64a268b6f458f46a27169741a624f121d4c67 /plugins/Clist_modern | |
parent | 91187e797c9b4a477c2a4c9e5bf6b1833d92e683 (diff) |
last account disabling crashes Clist Modern
git-svn-id: http://svn.miranda-ng.org/main/trunk@1653 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/src/modern_statusbar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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();
|