diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-07 19:24:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-07 19:24:29 +0000 |
commit | 4c8d197c7259166c26e037f352f9cc801942308e (patch) | |
tree | 9563615d1fc46c5f62e892416d77aef0b4172680 /plugins/TopToolBar/topbutton.cpp | |
parent | 3dfbb6741fe9e70bff6b70608cd7663742287a4a (diff) |
- removed unneeded hooks & services control;
- arrangedpos uniqueness
git-svn-id: http://svn.miranda-ng.org/main/trunk@824 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/topbutton.cpp')
-rw-r--r-- | plugins/TopToolBar/topbutton.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/TopToolBar/topbutton.cpp b/plugins/TopToolBar/topbutton.cpp index 88d4128c0e..952140da95 100644 --- a/plugins/TopToolBar/topbutton.cpp +++ b/plugins/TopToolBar/topbutton.cpp @@ -3,6 +3,8 @@ #define BitChanged(c) (dwFlags ^ Flags) & c
+static int maxid = 10000;
+
TopButtonInt::~TopButtonInt()
{
if (dwFlags & TTBBF_ISLBUTTON) {
@@ -105,6 +107,9 @@ void TopButtonInt::LoadSettings() if ( DBGetContactSettingByte(0, TTB_OPTDIR, AS(buf, name, "_Visible"), oldv) > 0 )
dwFlags |= TTBBF_VISIBLE;
}
+
+ if (Buttons.getIndex(this) != -1)
+ arrangedpos = maxid++;
}
void TopButtonInt::SaveSettings(int *SepCnt, int *LaunchCnt)
|