From c23145643c47428677da6a42f3185b94968fddf1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Sep 2012 19:35:36 +0000 Subject: clutch for TopToolBar not to destroy buttons on Apply in options git-svn-id: http://svn.miranda-ng.org/main/trunk@1691 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/src/ttbopt.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/TopToolBar/src') diff --git a/plugins/TopToolBar/src/ttbopt.cpp b/plugins/TopToolBar/src/ttbopt.cpp index db7d78dcb5..ea6e994cba 100644 --- a/plugins/TopToolBar/src/ttbopt.cpp +++ b/plugins/TopToolBar/src/ttbopt.cpp @@ -131,8 +131,11 @@ static void RecreateWindows() for (int i = 0; i < Buttons.getCount(); i++) { TopButtonInt *b = Buttons[i]; if (b->hwnd) { - DestroyWindow(b->hwnd); - b->CreateWnd(); + if (g_ctrl->bHardUpdate) { + DestroyWindow(b->hwnd); + b->CreateWnd(); + } + else b->SetBitmap(); } } } -- cgit v1.2.3