summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/toolbar.cpp
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2012-06-24 10:31:17 +0000
committerAlexey Kulakov <panda75@bk.ru>2012-06-24 10:31:17 +0000
commit74dedd8bbf8ec9b3ca1e0f07fc603875697aa9b3 (patch)
tree6a734f5d5300e789265d82349a5b24830af2bd2a /plugins/TopToolBar/toolbar.cpp
parent66b49434b600a3b326697393a86c93129f545e92 (diff)
resource buttons aligned
added path browse button for launch buttons service addition/deletion reaction in option view addded git-svn-id: http://svn.miranda-ng.org/main/trunk@598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/toolbar.cpp')
-rw-r--r--plugins/TopToolBar/toolbar.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp
index f7e2b19c68..17e5028df0 100644
--- a/plugins/TopToolBar/toolbar.cpp
+++ b/plugins/TopToolBar/toolbar.cpp
@@ -183,12 +183,14 @@ INT_PTR TTBRemoveButton(WPARAM wParam, LPARAM lParam)
return -1;
}
+ RemoveFromOptions(b->id);
+
Buttons.remove(b);
delete b;
ArrangeButtons();
ulockbut();
- OptionsPageRebuild();
+// OptionsPageRebuild();
return 0;
}
@@ -318,7 +320,9 @@ INT_PTR TTBAddButton(WPARAM wParam, LPARAM lParam)
ulockbut();
ArrangeButtons();
- OptionsPageRebuild();
+// OptionsPageRebuild();
+
+ AddToOptions(b);
return b->id;
}