JAL-1988 JAL-3772 Change default alignmentviewport saved status and set to true when...
authorBen Soares <b.soares@dundee.ac.uk>
Tue, 1 Nov 2022 16:50:36 +0000 (16:50 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Tue, 1 Nov 2022 16:50:36 +0000 (16:50 +0000)
src/jalview/io/FileLoader.java
src/jalview/viewmodel/AlignmentViewport.java

index 4016e71..ffeb53d 100755 (executable)
@@ -465,6 +465,7 @@ public class FileLoader implements Runnable
             {
               alignFrame.setFileName(file, format);
               alignFrame.setFileObject(selectedFile); // BH 2018 SwingJS
+              alignFrame.getViewport().setSavedUpToDate(true);
             }
             if (proxyColourScheme != null)
             {
index 975b292..5a4ceb9 100644 (file)
@@ -104,7 +104,7 @@ public abstract class AlignmentViewport
   /**
    * used to determine if quit should be confirmed
    */
-  private boolean savedUpToDate = true;
+  private boolean savedUpToDate = false;
 
   /**
    * alignment displayed in the viewport. Please use get/setter