From 4757ce82f24ba4b6fa6c6a7fd2da3bff719cef13 Mon Sep 17 00:00:00 2001 From: Kevin Ruland Date: Mon, 23 Jul 2012 17:00:19 +0000 Subject: [PATCH] Update comments in saveAsRocksim(File) method noting that the saved state flag in OpenRocketDocument should not be switched to true after a successful save. --- core/src/net/sf/openrocket/gui/main/BasicFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/net/sf/openrocket/gui/main/BasicFrame.java b/core/src/net/sf/openrocket/gui/main/BasicFrame.java index a845a7724..1d90347eb 100644 --- a/core/src/net/sf/openrocket/gui/main/BasicFrame.java +++ b/core/src/net/sf/openrocket/gui/main/BasicFrame.java @@ -1340,7 +1340,6 @@ public class BasicFrame extends JFrame { * @return true if the file was written */ private boolean saveAsRocksim(File file) { - // FIME - this function can probably go away since the Worker thread can handle rocksim files. file = FileHelper.forceExtension(file, "rkt"); if (!FileHelper.confirmWrite(file, this)) { return false; @@ -1350,6 +1349,7 @@ public class BasicFrame extends JFrame { StorageOptions options = new StorageOptions(); options.setFileType(StorageOptions.FileType.ROCKSIM); ROCKET_SAVER.save(file,document,options); + // Do not update the save state of the document. return true; } catch (IOException e) { return false;