*
* 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
import java.io.*;
import java.util.concurrent.*;
import java.util.*;
-import org.altusmetrum.AltosLib.*;
-import org.altusmetrum.altosuilib.*;
+import org.altusmetrum.altoslib_13.*;
+import org.altusmetrum.altosuilib_13.*;
public class MicroSave extends JFileChooser {
}
try {
save(file, data);
+ AltosUIPreferences.set_last_logdir(file.getParentFile());
data.set_name(filename);
return true;
} catch (FileNotFoundException fe) {
setDialogTitle("Save MicroPeak Data File");
setFileFilter(new FileNameExtensionFilter("MicroPeak data file",
"mpd"));
- setCurrentDirectory(AltosUIPreferences.logdir());
+ setCurrentDirectory(AltosUIPreferences.last_logdir());
+ setSelectedFile(MicroFile.make());
}
}