From a63f23128ea8468ec01e99976d046af8c6dfa807 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 Jul 2012 16:55:11 +0000 Subject: customized toolbars: initial settings git-svn-id: http://svn.miranda-ng.org/main/trunk@929 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/modern_toolbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Clist_modern') diff --git a/plugins/Clist_modern/modern_toolbar.cpp b/plugins/Clist_modern/modern_toolbar.cpp index 33776eacd3..92a46dcd46 100644 --- a/plugins/Clist_modern/modern_toolbar.cpp +++ b/plugins/Clist_modern/modern_toolbar.cpp @@ -57,10 +57,10 @@ static void SetButtonPressed(int i, int state) static int Modern_InitButtons(WPARAM, LPARAM) { - TTBButton tbb = { 0 }; - tbb.cbSize = sizeof(tbb); - for (int i=0; i < SIZEOF(BTNS); i++) { + TTBButton tbb = { 0 }; + tbb.cbSize = sizeof(tbb); + if (BTNS[i].pszButtonID) { tbb.name = LPGEN(BTNS[i].pszButtonID); tbb.pszService = BTNS[i].pszServiceName; -- cgit v1.2.3