]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix of the bug with unwanted context menu appeared after closing some Plot2d dialogs.
authorouv <ouv@opencascade.com>
Wed, 18 Aug 2010 08:12:26 +0000 (08:12 +0000)
committerouv <ouv@opencascade.com>
Wed, 18 Aug 2010 08:12:26 +0000 (08:12 +0000)
src/Plot2d/Plot2d_ViewFrame.cxx

index b2fc5e26e5f661ba80b16dd3adaf8549435c0bba..7dcafc445ed218ce8cddec7f469b1b8c62366c43 100755 (executable)
@@ -363,6 +363,10 @@ bool Plot2d_ViewFrame::eventFilter( QObject* watched, QEvent* e )
         }
         break;
       }
+    case QEvent::ContextMenu:
+      // Fix from SLN
+      // Do nothing because context menu is called from MouseRelease
+      return true;
     }
   }
   return QWidget::eventFilter( watched, e );