From: ouv Date: Wed, 18 Aug 2010 08:12:26 +0000 (+0000) Subject: Fix of the bug with unwanted context menu appeared after closing some Plot2d dialogs. X-Git-Tag: end_translate_resources_09Jul10~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0516786f33dcfc3bab9c518bbaf71e69f1209e9d;p=modules%2Fgui.git Fix of the bug with unwanted context menu appeared after closing some Plot2d dialogs. --- 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 );