Salome HOME
Fix for bug IPAL9242(3.0.0: Activation of OCC viewer breaks current VTK viewer in...
authormzn <mzn@opencascade.com>
Wed, 29 Jun 2005 12:35:32 +0000 (12:35 +0000)
committermzn <mzn@opencascade.com>
Wed, 29 Jun 2005 12:35:32 +0000 (12:35 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 29840349b28f6654539ff2c6590e6c2e39fef221..6a7cd010a8daa104ec27f7cb8d76e5bdac97fb53 100644 (file)
@@ -3053,7 +3053,8 @@ void SMESHGUI::initialize( CAM_Application* app )
   // Display / Erase
   //-------------------------------------------------
   aClient = "($client in {'VTKViewer' 'ObjectBrowser'})";
-  QString aRule = aClient + " and " + aType + " and " + aSelCount;
+  QString anActiveVTK = QString("activeView = '%1'").arg(VTKViewer_Viewer::Type());
+  QString aRule = aClient + " and " + aType + " and " + aSelCount + " and " + anActiveVTK;
   popupMgr()->insert( action( 301 ), -1, -1 ); // DISPLAY
   popupMgr()->setRule( action( 301 ), aRule + "&&" + isNotEmpty + "&&" + isInvisible, true);