summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-27 19:35:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-27 19:35:36 +0000
commitc23145643c47428677da6a42f3185b94968fddf1 (patch)
tree12a03568f3b2f0ce8f2756801c9b781dd4df978a /plugins/TopToolBar
parentc94b07138f148a4ee92313e8a57e5725d51fe1b4 (diff)
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
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r--plugins/TopToolBar/src/ttbopt.cpp7
1 files changed, 5 insertions, 2 deletions
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();
}
}
}