From 193fda2755ccc72dce5175fa5445348b6fdcc92e Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Tue, 1 Nov 2022 16:50:36 +0000 Subject: [PATCH] JAL-1988 JAL-3772 Change default alignmentviewport saved status and set to true when loaded from file --- src/jalview/io/FileLoader.java | 1 + src/jalview/viewmodel/AlignmentViewport.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 1.7.10.2