diff options
author | Alexey Kulakov <panda75@bk.ru> | 2012-06-24 10:31:17 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2012-06-24 10:31:17 +0000 |
commit | 74dedd8bbf8ec9b3ca1e0f07fc603875697aa9b3 (patch) | |
tree | 6a734f5d5300e789265d82349a5b24830af2bd2a /plugins/TopToolBar/toolbar.cpp | |
parent | 66b49434b600a3b326697393a86c93129f545e92 (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.cpp | 8 |
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;
}
|