X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=micropeak%2FMicroSave.java;h=a38e2b46710a6bb8bad88eca0760fe7a452b085f;hb=debian;hp=6822a96114afea8cf5ab8bf325b5200fba6a56d0;hpb=31cf047113ec72a78f4b500223a2c6be23bc86fd;p=fw%2Faltos diff --git a/micropeak/MicroSave.java b/micropeak/MicroSave.java index 6822a961..f6e2ed2a 100644 --- a/micropeak/MicroSave.java +++ b/micropeak/MicroSave.java @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -24,8 +25,8 @@ import javax.swing.filechooser.FileNameExtensionFilter; import java.io.*; import java.util.concurrent.*; import java.util.*; -import org.altusmetrum.altoslib_11.*; -import org.altusmetrum.altosuilib_11.*; +import org.altusmetrum.altoslib_14.*; +import org.altusmetrum.altosuilib_14.*; public class MicroSave extends JFileChooser { @@ -71,7 +72,7 @@ public class MicroSave extends JFileChooser { JOptionPane.YES_NO_OPTION); if (r != JOptionPane.YES_OPTION) continue; - + if (!file.canWrite()) { JOptionPane.showMessageDialog(frame, String.format("\"%s\" is not writable", @@ -103,6 +104,6 @@ public class MicroSave extends JFileChooser { setFileFilter(new FileNameExtensionFilter("MicroPeak data file", "mpd")); setCurrentDirectory(AltosUIPreferences.last_logdir()); - setSelectedFile(MicroFile.make()); + setSelectedFile(MicroFile.make(data)); } }