From 0516786f33dcfc3bab9c518bbaf71e69f1209e9d Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 18 Aug 2010 08:12:26 +0000 Subject: [PATCH] Fix of the bug with unwanted context menu appeared after closing some Plot2d dialogs. --- src/Plot2d/Plot2d_ViewFrame.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index b2fc5e26e..7dcafc445 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -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 ); -- 2.39.2