summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/topbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TopToolBar/topbutton.cpp')
-rw-r--r--plugins/TopToolBar/topbutton.cpp5
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)