From 5db942e084ef7fa489f27124e684b66790f3cf3f Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 23 Mar 2006 11:16:29 +0000 Subject: [PATCH] PAL11954 - VTK viewer isn't activated during Post-Pro activating if there is one already --- src/VISUGUI/VisuGUI.cxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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() ); } -- 2.39.2