BMenuField: Check if menuBar is NULL explicitly

This commit is contained in:
John Scipione 2014-04-22 19:39:45 -04:00
parent d055b93b25
commit c79f260276

View File

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