Salome HOME
*** empty log message ***
[modules/visu.git] / src / VISUGUI / VisuGUI_Tools.cxx
index 7e85c5958db19da78bc9abf06cf1b803fcc1a04e..4606134bce3fa591e69b75e922ec4b656bd2a48e 100644 (file)
@@ -381,6 +381,8 @@ namespace VISU
 
     CORBA::Object_var anObj = VISU::ClientSObjectToObject(theSObject);
     if (!CORBA::is_nil(anObj)) {
+      ErasePrs(theModule, anObj);
+
       VISU::RemovableObject_var aRemovableObject = VISU::RemovableObject::_narrow(anObj);
       if (!CORBA::is_nil(aRemovableObject)) {
         aRemovableObject->RemoveFromStudy();
@@ -1045,6 +1047,8 @@ namespace VISU
         timer.Show();
 #endif
         theModule->application()->putInfo(QObject::tr("INF_DONE"));
+        // Make "Save" button active
+        theModule->getApp()->updateActions();
       } catch (std::runtime_error& exc) {
         INFOS(exc.what());
         SUIT_MessageBox::warn1 (GetDesktop(theModule),