]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
added check for Save Point object in canBeDisplayed branch. Save Point objects can...
authorasv <asv@opencascade.com>
Thu, 9 Mar 2006 14:16:59 +0000 (14:16 +0000)
committerasv <asv@opencascade.com>
Thu, 9 Mar 2006 14:16:59 +0000 (14:16 +0000)
src/LightApp/LightApp_Selection.cxx

index bca35cfec27e7b8e4a3ee34f7c14e0363f06cda4..454ee5320b787f776515aa0a3fce3e2671f7a2b4 100644 (file)
@@ -153,7 +153,12 @@ QtxValue LightApp_Selection::param( const int ind, const QString& p ) const
     LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( mod_name, false );
     // false in last parameter means that now we doesn't load module, if it isn't loaded
 
-    return QtxValue( d ? d->canBeDisplayed( myEntries[ ind ] ) : true, 0 );
+    if ( d )
+      return d->canBeDisplayed( myEntries[ ind ] );
+    else if ( myEntries[ ind ].startsWith( QObject::tr( "SAVE_POINT_DEF_NAME" ) ) ) // object is a Save Point object
+      return false;
+
+    return true;
     //now if displayer is null, it means, that according module isn't loaded, so that we allow to all display/erase
     //operations under object
   }