From: asl Date: Thu, 23 Mar 2006 11:16:29 +0000 (+0000) Subject: PAL11954 - VTK viewer isn't activated during Post-Pro activating if there is one... X-Git-Tag: mergeto_OCC_debug_for_3_2_0b1_07Apr06~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5db942e084ef7fa489f27124e684b66790f3cf3f;p=modules%2Fvisu.git PAL11954 - VTK viewer isn't activated during Post-Pro activating if there is one already --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 9fa0c8d8..a03b12e8 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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 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() ); }