]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
DisplayOnly and EraseAll operations do not need the modules which are not yet present...
authorvsr <vsr@opencascade.com>
Wed, 27 Sep 2017 13:41:19 +0000 (16:41 +0300)
committervsr <vsr@opencascade.com>
Wed, 27 Sep 2017 13:43:30 +0000 (16:43 +0300)
src/SALOME_SWIG/SALOMEGUI_Swig.cxx

index bcd1e54adb8368ae41521dcacf05f8860f04e6da..c6b25bdaddce4ba376b61fee700b01a343914b59 100644 (file)
@@ -484,7 +484,7 @@ void SALOMEGUI_Swig::DisplayOnly( const char* theEntry )
        QStringList comps;
        aStudy->components( comps );
        foreach( QString comp, comps ) {
-         LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( anApp->moduleTitle( comp ), true );
+         LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( anApp->moduleTitle( comp ), false );
          if ( d ) d->EraseAll( false, false, 0 );
        }
 
@@ -594,7 +594,7 @@ void SALOMEGUI_Swig::EraseAll()
        QStringList comps;
        aStudy->components( comps );
        foreach( QString comp, comps ) {
-         LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( anApp->moduleTitle( comp ), true );
+         LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( anApp->moduleTitle( comp ), false );
          if ( d ) d->EraseAll( false, false, 0 );
        }
       }