From 7ecc04177a37e9e15ef4b87b577ea2577d78fe4e Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sat, 26 Jun 2010 12:43:16 +0000 Subject: [PATCH] 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 --- src/kits/interface/Menu.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index 29e2e30658..a0a57a7ce4 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -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; }