if no menubar is found in the archive, recreate one to avoid crashing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25212 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b2d95c3c1d
commit
5975ad0cfc
@ -157,6 +157,8 @@ BMenuField::BMenuField(BMessage *data)
|
||||
InitObject(label);
|
||||
|
||||
fMenuBar = (BMenuBar*)FindView("_mc_mb_");
|
||||
if (!fMenuBar)
|
||||
_InitMenuBar(new BMenu(""), BRect(0, 0, 100, 15), false);
|
||||
fMenu = fMenuBar->SubmenuAt(0);
|
||||
|
||||
InitObject2();
|
||||
|
Loading…
Reference in New Issue
Block a user