Removed use of fDynamicItemsAdded, since it can't work like this.

Since a custom BMenu can remove the added items whenever it wants,
they wouldn't never be added back if the menu wasn't destroyed
and recreated


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37262 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2010-06-26 12:43:16 +00:00
parent 780b76dcf9
commit 7ecc04177a
1 changed files with 0 additions and 6 deletions

View File

@ -2751,9 +2751,6 @@ BMenu::_UpdateWindowViewSize(const bool &move)
bool
BMenu::_AddDynamicItems()
{
if (fDynamicItemsAdded)
return false;
bool attachAborted = false;
BMenuItem* superItem = Superitem();
BMenu* superMenu = Supermenu();
@ -2768,9 +2765,6 @@ BMenu::_AddDynamicItems()
} while (AddDynamicItem(B_PROCESSING));
}
if (!attachAborted)
fDynamicItemsAdded = true;
return attachAborted;
}