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

View File

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