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/trunk@27744 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2008-11-29 17:29:13 +00:00
parent 9c52ffc6fa
commit 9c9cdd3912

View File

@ -803,10 +803,11 @@ 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);
}
}
#endif
if (d.current_work_area_)