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:
Jérôme Duval 2008-04-27 14:18:39 +00:00
parent b2d95c3c1d
commit 5975ad0cfc

View File

@ -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();