Update comments in saveAsRocksim(File) method noting that the saved state flag in OpenRocketDocument should not be switched to true after a successful save.

This commit is contained in:
Kevin Ruland 2012-07-23 17:00:19 +00:00 committed by U-WINDOWS-C28163E\Administrator
parent 3c7afcc2fb
commit 4757ce82f2

View File

@ -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;