branch: Fix bug 5507: Full screen hangs LyX when no file is opened

http://bugzilla.lyx.org/show_bug.cgi?id=5507

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27745 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2008-11-29 17:58:44 +00:00
parent 1f524b2bf3
commit 703df4dc45

View File

@ -794,9 +794,10 @@ bool GuiView::event(QEvent * e)
// Alt-P and Alt-M. Right now there is a hack in
// GuiWorkArea::processKeySym() that hides again the menubar for
// those cases.
if (ke->modifiers() & Qt::AltModifier && ke->key() != Qt::Key_Alt)
if (ke->modifiers() & Qt::AltModifier && ke->key() != Qt::Key_Alt) {
menuBar()->show();
return QMainWindow::event(e);
return QMainWindow::event(e);
}
}
#endif