]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix: avoid pop-up requested event when keyboard modifiers are used.
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 14 May 2014 06:37:50 +0000 (10:37 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 14 May 2014 06:37:50 +0000 (10:37 +0400)
src/XGUI/XGUI_ViewWindow.cpp

index 328b293061656ab1535535b6490e27dab22ab057..bff1e923f5451a5e8226e17ee41cc45be1f5c4da 100644 (file)
@@ -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);
+  }
 }
 
 //****************************************************************