From: Abdelrazak Younes Date: Wed, 26 Dec 2007 12:48:36 +0000 (+0000) Subject: * GuiWorkArea::contextMenuEvent(): accept the event otherwise it is passed down to... X-Git-Tag: 1.6.10~6799 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6b0a396d74cdbb1968dadddbe79683f6cac4069b;p=lyx.git * 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 --- 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(); }