]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorstv <stv@opencascade.com>
Thu, 27 Mar 2008 14:02:10 +0000 (14:02 +0000)
committerstv <stv@opencascade.com>
Thu, 27 Mar 2008 14:02:10 +0000 (14:02 +0000)
src/SUIT/SUIT_ViewWindow.cxx

index 66ce8b08cbffa10da078a9a230eb47bb1fbf643e..a9e8ae95d920f5c479ff0f7a9a9b19855ea141d0 100755 (executable)
@@ -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 );
 }