Author: jackburton Date: 2010-06-26 14:43:16 +0200 (Sat, 26 Jun 2010) New Revision: 37262 Changeset: http://dev.haiku-os.org/changeset/37262/haiku Modified: haiku/trunk/src/kits/interface/Menu.cpp Log: 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 Modified: haiku/trunk/src/kits/interface/Menu.cpp =================================================================== --- haiku/trunk/src/kits/interface/Menu.cpp 2010-06-26 12:29:17 UTC (rev 37261) +++ haiku/trunk/src/kits/interface/Menu.cpp 2010-06-26 12:43:16 UTC (rev 37262) @@ -2751,9 +2751,6 @@ bool BMenu::_AddDynamicItems() { - if (fDynamicItemsAdded) - return false; - bool attachAborted = false; BMenuItem* superItem = Superitem(); BMenu* superMenu = Supermenu(); @@ -2768,9 +2765,6 @@ } while (AddDynamicItem(B_PROCESSING)); } - if (!attachAborted) - fDynamicItemsAdded = true; - return attachAborted; }