X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ViewWindow.cpp;h=5a1a9ba4097ed64aeef7c13082fce24c09e0f8ae;hb=25df988cd1b0b85f45355f2c21c2642cd0ea1d74;hp=328b293061656ab1535535b6490e27dab22ab057;hpb=12374ff5c533c0c60f8b779cf637cd2455a370a5;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ViewWindow.cpp b/src/XGUI/XGUI_ViewWindow.cpp index 328b29306..5a1a9ba40 100644 --- a/src/XGUI/XGUI_ViewWindow.cpp +++ b/src/XGUI/XGUI_ViewWindow.cpp @@ -679,8 +679,11 @@ void XGUI_ViewWindow::vpMousePressEvent(QMouseEvent* theEvent) //**************************************************************** void XGUI_ViewWindow::contextMenuEvent(QContextMenuEvent* theEvent) { - QFrame::contextMenuEvent(theEvent); - emit contextMenuRequested(theEvent); + if (theEvent->modifiers() == Qt::NoModifier) { + // Temporary: has to be removed when viewer popup will be defined + //QFrame::contextMenuEvent(theEvent); + emit contextMenuRequested(theEvent); + } } //****************************************************************