From: stv Date: Thu, 27 Mar 2008 14:02:10 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_0_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c6ca3f3d5b88b55f68d4c068e8918fa5968c8a8;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/SUIT/SUIT_ViewWindow.cxx b/src/SUIT/SUIT_ViewWindow.cxx index 66ce8b08c..a9e8ae95d 100755 --- a/src/SUIT/SUIT_ViewWindow.cxx +++ b/src/SUIT/SUIT_ViewWindow.cxx @@ -50,7 +50,7 @@ SUIT_ViewWindow::SUIT_ViewWindow( SUIT_Desktop* theDesktop ) setWindowIcon( myDesktop->windowIcon() ); setAttribute( Qt::WA_DeleteOnClose ); - + myToolMgr = new QtxActionToolMgr( this ); } @@ -135,8 +135,15 @@ void SUIT_ViewWindow::closeEvent( QCloseEvent* e ) /*! Context menu requested for event \a e. */ -void SUIT_ViewWindow::contextMenuEvent ( QContextMenuEvent * e ) +void SUIT_ViewWindow::contextMenuEvent( QContextMenuEvent* e ) { + e->ignore(); + + QMainWindow::contextMenuEvent( e ); + + if ( e->isAccepted() ) + return; + if ( e->reason() != QContextMenuEvent::Mouse ) emit contextMenuRequested( e ); }