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:
parent
780b76dcf9
commit
7ecc04177a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user