summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/toolbar.cpp
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2012-06-29 20:46:12 +0000
committerAlexey Kulakov <panda75@bk.ru>2012-06-29 20:46:12 +0000
commit187798bdd5c9d1c917b6c22ea6c083e73ac36276 (patch)
treee458e2bd5a0cca5822aa0c72b163b8711335e4ba /plugins/TopToolBar/toolbar.cpp
parentd8f1c974528897e63f0a0b3c873e6e30a319f88f (diff)
pascal headers updated, testdll added
ShlExt: types fixes, compiling to 64 bit now (not sure what will work btw) TopToolBar: some load-save things changes git-svn-id: http://svn.miranda-ng.org/main/trunk@689 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/toolbar.cpp')
-rw-r--r--plugins/TopToolBar/toolbar.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp
index d36dca62bf..8e42322e58 100644
--- a/plugins/TopToolBar/toolbar.cpp
+++ b/plugins/TopToolBar/toolbar.cpp
@@ -504,7 +504,7 @@ INT_PTR TTBSetOptions(WPARAM wParam, LPARAM lParam)
b->SetBitmap();
if (retval & TTBBF_VISIBLE) {
ArrangeButtons();
- // save button setting
+ b->SaveSettings(0,0);
}
retval = 1;
@@ -541,17 +541,17 @@ INT_PTR TTBSetOptions(WPARAM wParam, LPARAM lParam)
if (changed)
b->SetBitmap();
- changed = 0;
if (retval & TTBBF_VISIBLE) {
ArrangeButtons();
- changed = 1;
+ b->SaveSettings(0,0);
}
if (b->dwFlags & TTBBF_ISLBUTTON) {
if (b->program != NULL)
free(b->program);
b->program = _tcsdup(lpTTB->program);
- changed = 1; // for launch buttons from user, not options (options don't share handles)
+// don't save program changing in use buttons
+// changed = 1; // for launch buttons from user, not options (options don't share handles)
}
else {
if (b->pszService != NULL)
@@ -559,9 +559,6 @@ INT_PTR TTBSetOptions(WPARAM wParam, LPARAM lParam)
b->pszService = _strdup(lpTTB->pszService);
}
-// if (changed)
-// ;// save button setting
-
b->lParamUp = lpTTB->lParamUp;
b->wParamUp = lpTTB->wParamUp;
b->lParamDown = lpTTB->lParamDown;