From 6b0a396d74cdbb1968dadddbe79683f6cac4069b Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 26 Dec 2007 12:48:36 +0000 Subject: [PATCH] * GuiWorkArea::contextMenuEvent(): accept the event otherwise it is passed down to GuiView after pressing the Esc key. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22310 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiWorkArea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 0f71037183..8e21afa7a6 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -535,7 +535,7 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e) // FIXME: correct vertical position of the menu WRT screen espace. //pos.ry() += menu->height(); menu->exec(pos); - QAbstractScrollArea::contextMenuEvent(e); + e->accept(); }