BMenu installed all previously added items each time a new item was added

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12980 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-06-07 13:13:43 +00:00
parent e068395097
commit 8768dcd876

View File

@ -116,7 +116,8 @@ sPropList[] = {
BMenu::BMenu(const char *name, menu_layout layout)
: BView(BRect(), name, 0, B_WILL_DRAW),
// : BView(BRect(), name, 0, B_WILL_DRAW),
: BView(BRect(0.0, 0.0, 5.0, 5.0), name, 0, B_WILL_DRAW),
fChosenItem(NULL),
fPad(14.0f, 2.0f, 20.0f, 0.0f),
fSelected(NULL),
@ -1191,7 +1192,7 @@ BMenu::_AddItem(BMenuItem *item, int32 index)
root = root->Supermenu();
if (root->Window())
Install(root->Window());
item->Install(root->Window());
return err;
}