From: asv Date: Thu, 9 Mar 2006 14:24:18 +0000 (+0000) Subject: check for Save Point object is added to IsRemovableSelected() function. X-Git-Tag: mergeto_trunk_13Mar06~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=290a5980ac907478e2afe4cdfe80a5f7d4ca1d55;p=modules%2Fvisu.git check for Save Point object is added to IsRemovableSelected() function. --- 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) {