]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
check for Save Point object is added to IsRemovableSelected() function.
authorasv <asv@opencascade.com>
Thu, 9 Mar 2006 14:24:18 +0000 (14:24 +0000)
committerasv <asv@opencascade.com>
Thu, 9 Mar 2006 14:24:18 +0000 (14:24 +0000)
src/VISUGUI/VisuGUI_Tools.cxx

index 90f7dc2ccc3a0ddd6bb559893b723b687071daa4..757b1749ba1008371b112fd7f20a74af62b3c568 100644 (file)
@@ -367,6 +367,11 @@ namespace VISU
     for (; anIter.More(); anIter.Next()) {
       Handle(SALOME_InteractiveObject) anIO = anIter.Value();
       if (anIO->hasEntry()) {
+
+       // asv : if selected object is a Save Point object selected in object browser - return false
+       if ( QString( anIO->getEntry() ).startsWith( QObject::tr( "SAVE_POINT_DEF_NAME" ) ) )
+         return false;
+
         _PTR(SObject) aSObject = aStudy->FindObjectID(anIO->getEntry());
         VISU::Storable::TRestoringMap pMap;
         if (aSObject) {