From 05e7d19c5e022e02203e944dd4823c044aeb4a8d Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 2 Apr 2015 13:25:26 +0400 Subject: [PATCH] INT PAL 52638: "Hide All" operation doesn't work in the SALOME OCC and VTK viewers when PARAVIS module is active. --- src/LightApp/LightApp_ShowHideOp.cxx | 36 +++++++++++++++------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/src/LightApp/LightApp_ShowHideOp.cxx b/src/LightApp/LightApp_ShowHideOp.cxx index b001bb4a2..2b8ae4ad5 100644 --- a/src/LightApp/LightApp_ShowHideOp.cxx +++ b/src/LightApp/LightApp_ShowHideOp.cxx @@ -78,22 +78,6 @@ void LightApp_ShowHideOp::startOperation() return; } - QString mod_name; - if( sel->count()>0 ) - { - QString aStr = sel->parameter( 0, "displayer" ).toString(); - mod_name = app->moduleTitle( aStr ); - } - else if( app->activeModule() ) - mod_name = app->moduleTitle( app->activeModule()->name() ); - - LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( mod_name, true ); - if( !d ) - { - abort(); - return; - } - if( myActionType==DISPLAY_ONLY || myActionType==ERASE_ALL ) { //ERASE ALL @@ -108,12 +92,30 @@ void LightApp_ShowHideOp::startOperation() } if( myActionType==ERASE_ALL ) { - d->UpdateViewer(); + // Temporary displayer just to update viewer! + LightApp_Displayer ld; + ld.UpdateViewer(); commit(); return; } } + QString mod_name; + if( sel->count()>0 ) + { + QString aStr = sel->parameter( 0, "displayer" ).toString(); + mod_name = app->moduleTitle( aStr ); + } + else if( app->activeModule() ) + mod_name = app->moduleTitle( app->activeModule()->name() ); + + LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( mod_name, true ); + if( !d ) + { + abort(); + return; + } + QStringList entries; #ifndef DISABLE_SALOMEOBJECT -- 2.39.2