From 4c8d197c7259166c26e037f352f9cc801942308e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 Jul 2012 19:24:29 +0000 Subject: - removed unneeded hooks & services control; - arrangedpos uniqueness git-svn-id: http://svn.miranda-ng.org/main/trunk@824 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/topbutton.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/TopToolBar/topbutton.cpp') 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) -- cgit v1.2.3