]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
PAL11954 - VTK viewer isn't activated during Post-Pro activating if there is one...
authorasl <asl@opencascade.com>
Thu, 23 Mar 2006 11:16:29 +0000 (11:16 +0000)
committerasl <asl@opencascade.com>
Thu, 23 Mar 2006 11:16:29 +0000 (11:16 +0000)
src/VISUGUI/VisuGUI.cxx

index 9fa0c8d836ef001ea3a4879eb915991cb32e1a1b..a03b12e81d20bb4036ad0c325b8ce19b460bdf26 100644 (file)
@@ -2716,15 +2716,11 @@ VisuGUI::
 viewManagers( QStringList& theList ) const
 {
   theList.clear();
-  // append SVTK viewer only if there is neither SVTK nor VVTK is open
-  QPtrList<SUIT_ViewManager> lst;
-  getApp()->viewManagers( SVTK_Viewer::Type(), lst );
-  if ( !lst.count() ) {
-    lst.clear();
-    getApp()->viewManagers( VVTK_Viewer::Type(), lst );
-    if ( !lst.count() )
-      theList.append( SVTK_Viewer::Type() );
-  }
+  // append SVTK viewer only if there is no opened VVTK
+  if( getApp()->getViewManager( VVTK_Viewer::Type(), false ) )
+    theList.append( VVTK_Viewer::Type() );
+  else
+    theList.append( SVTK_Viewer::Type() );
 }