From 703df4dc451045f6e46aa63759ff5a4e62a4a267 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sat, 29 Nov 2008 17:58:44 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index cacbafbd51..8f94db3a5c 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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