diff --git a/src/fmenuitem.cpp b/src/fmenuitem.cpp index 1d5f0bda..2ea6c8bf 100644 --- a/src/fmenuitem.cpp +++ b/src/fmenuitem.cpp @@ -219,10 +219,12 @@ void FMenuItem::onKeyPress (FKeyEvent* ev) if ( isMenuBar(super_menu) ) { FMenuBar* mbar = dynamic_cast(super_menu); - if ( mbar->hotkeyMenu(ev) ) - return; if ( mbar ) + { + if ( mbar->hotkeyMenu(ev) ) + return; mbar->onKeyPress(ev); + } } } }