From: Ben Soares Date: Tue, 1 Nov 2022 16:50:36 +0000 (+0000) Subject: JAL-1988 JAL-3772 Change default alignmentviewport saved status and set to true when... X-Git-Tag: Release_2_11_3_0~23^2~4^2~22 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=193fda2755ccc72dce5175fa5445348b6fdcc92e;p=jalview.git JAL-1988 JAL-3772 Change default alignmentviewport saved status and set to true when loaded from file --- diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index 4016e71..ffeb53d 100755 --- a/src/jalview/io/FileLoader.java +++ b/src/jalview/io/FileLoader.java @@ -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) { diff --git a/src/jalview/viewmodel/AlignmentViewport.java b/src/jalview/viewmodel/AlignmentViewport.java index 975b292..5a4ceb9 100644 --- a/src/jalview/viewmodel/AlignmentViewport.java +++ b/src/jalview/viewmodel/AlignmentViewport.java @@ -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