BMenuField: Check if menuBar is NULL explicitly
This commit is contained in:
parent
d055b93b25
commit
c79f260276
@ -1270,7 +1270,8 @@ BMenuField::_InitMenuBar(const BMessage* archive)
|
||||
|
||||
bool dmark = false;
|
||||
archive->FindBool("be:dmark", &dmark);
|
||||
if (_BMCMenuBar_* menuBar = dynamic_cast<_BMCMenuBar_*>(fMenuBar))
|
||||
_BMCMenuBar_* menuBar = dynamic_cast<_BMCMenuBar_*>(fMenuBar);
|
||||
if (menuBar != NULL)
|
||||
menuBar->TogglePopUpMarker(dmark);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user