Salome HOME
Fix for some problems with definition uses.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / EditDocumentAction.java
index d168d5c4678d635e38b42cb5624b93c1042a9142..8602af85bf3da48d50b83b7d7f24c5e365182765 100644 (file)
@@ -207,6 +207,8 @@ public class EditDocumentAction extends DisplayStudyStepAction {
 
                setMenu();
                _openStudy = getOpenStudy();
+               // updating current step and doc relations
+               _openStudy.updateCurrentStep();
                Step step = _openStudy.getSelectedStep();
 
                if (getStepService().removeDocument(step, Long.valueOf(_index))) { // Updates the data structure
@@ -216,6 +218,8 @@ public class EditDocumentAction extends DisplayStudyStepAction {
                        }
                        _openStudy = open(getStudyService().selectStudy(
                                        _openStudy.getIndex())); // Closes the previously open study
+                       //updating relations and pop-up menu
+                       _openStudy.updateCurrentStep();
                        _openStudy.setSelection(_selection);
                }
                return SUCCESS;