changeset 7637:17cc94866e88

[SCENEBUILDER] Fix for DTL-6792: Dirty document icon still there after Save As
author yjoan
date Fri, 08 Aug 2014 10:00:35 +0200
parents a3275d9e37e1
children 9f11f4d07448
files apps/scenebuilder/SceneBuilderApp/src/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/apps/scenebuilder/SceneBuilderApp/src/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java	Thu Aug 07 23:44:35 2014 +0400
+++ b/apps/scenebuilder/SceneBuilderApp/src/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java	Fri Aug 08 10:00:35 2014 +0200
@@ -1894,6 +1894,10 @@
 
                     // Now performs a regular save action
                     result = performSaveAction();
+                    if (result.equals(ActionStatus.DONE)) {
+                        messageBarController.setDocumentDirty(false);
+                        saveJob = getEditorController().getJobManager().getCurrentJob();
+                    }
                     
                     // Keep track of the user choice for next time
                     EditorController.updateNextInitialDirectory(fxmlFile);