Salome HOME
Fix of document popup menu refreshing after document import, delete and version....
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / ImportDocumentAction.java
index 748a0f7b7b4b155f45fb0455f1035f205f998ff2..70b76234b13b363c7d32adeedb291d9a1a2b69ef 100644 (file)
@@ -269,10 +269,7 @@ public class ImportDocumentAction extends BaseUploadDocumentAction {
                                        _mystudy.add(addoc); // Updates the presentation
                                } else {
                                        // Re-opening (refreshing) the currently open study
-                                       String selection = _mystudy.getSelection();
-                                       _mystudy = open(getStudyService().selectStudy(
-                                                       _mystudy.getIndex())); // Updates the study
-                                       _mystudy.setSelection(selection);
+                                       refreshStudy();
                                }
                                res = SUCCESS;
                        } catch (FileNotFoundException error) {