Xcos GUI: update the Tab title on save 55/17555/3
Clément DAVID [Wed, 9 Dec 2015 10:23:35 +0000 (11:23 +0100)]
Change-Id: Id49fc6e63e503feffc53411c309025a7eb5b3fbe

scilab/modules/xcos/src/java/org/scilab/modules/xcos/graph/XcosDiagram.java

index fc650f8..a841c70 100644 (file)
@@ -1654,13 +1654,7 @@ public class XcosDiagram extends ScilabGraph {
      * @return save status
      */
     public boolean saveDiagram() {
-        final boolean isSuccess = saveDiagramAs(getSavedFile());
-
-        if (isSuccess) {
-            setModified(false);
-        }
-
-        return isSuccess;
+        return saveDiagramAs(getSavedFile());
     }
 
     /**
@@ -1766,6 +1760,7 @@ public class XcosDiagram extends ScilabGraph {
             XcosDialogs.couldNotSaveFile(this);
         }
 
+        updateTabTitle();
         info(XcosMessages.EMPTY_INFO);
         return isSuccess;
     }