Need to remove items after Subscribe()

This commit is contained in:
John Scipione
2013-04-14 13:39:55 -04:00
parent d6d8b95a6d
commit f2e15d076c
+3 -3
View File
@@ -533,9 +533,6 @@ TExpandoMenuBar::MouseUp(BPoint where)
void
TExpandoMenuBar::BuildItems()
{
RemoveItems(0, CountItems(), true);
// remove all items
BMessenger self(this);
TBarApp::Subscribe(self, &fTeamList);
@@ -557,6 +554,9 @@ TExpandoMenuBar::BuildItems()
}
float itemHeight = -1.0f;
RemoveItems(0, CountItems(), true);
// remove all items
if (settings->sortRunningApps)
fTeamList.SortItems(CompareByName);