From 290a5980ac907478e2afe4cdfe80a5f7d4ca1d55 Mon Sep 17 00:00:00 2001 From: asv Date: Thu, 9 Mar 2006 14:24:18 +0000 Subject: [PATCH] check for Save Point object is added to IsRemovableSelected() function. --- src/VISUGUI/VisuGUI_Tools.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index 90f7dc2c..757b1749 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -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) { -- 2.39.2