From: vsv Date: Wed, 14 May 2014 06:37:50 +0000 (+0400) Subject: Fix: avoid pop-up requested event when keyboard modifiers are used. X-Git-Tag: V_0.2~67 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=88ab946240be1a77335afbb096e16599f79d6b0f;p=modules%2Fshaper.git Fix: avoid pop-up requested event when keyboard modifiers are used. --- diff --git a/src/XGUI/XGUI_ViewWindow.cpp b/src/XGUI/XGUI_ViewWindow.cpp index 328b29306..bff1e923f 100644 --- a/src/XGUI/XGUI_ViewWindow.cpp +++ b/src/XGUI/XGUI_ViewWindow.cpp @@ -679,8 +679,10 @@ void XGUI_ViewWindow::vpMousePressEvent(QMouseEvent* theEvent) //**************************************************************** void XGUI_ViewWindow::contextMenuEvent(QContextMenuEvent* theEvent) { - QFrame::contextMenuEvent(theEvent); - emit contextMenuRequested(theEvent); + if (theEvent->modifiers() == Qt::NoModifier) { + QFrame::contextMenuEvent(theEvent); + emit contextMenuRequested(theEvent); + } } //****************************************************************