From 759b9501e1204b91bbe8df645dbe042e6d756ce1 Mon Sep 17 00:00:00 2001 From: Thog Date: Thu, 25 Aug 2016 19:57:24 +0200 Subject: Fix mapping not beeing saving in the right directory in some case --- src/main/java/cuchaz/enigma/gui/Gui.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cuchaz/enigma/gui/Gui.java b/src/main/java/cuchaz/enigma/gui/Gui.java index 0826f04f..29d5fec6 100644 --- a/src/main/java/cuchaz/enigma/gui/Gui.java +++ b/src/main/java/cuchaz/enigma/gui/Gui.java @@ -719,7 +719,7 @@ public class Gui { public void saveMapping() throws IOException { if (this.enigmaMappingsFileChooser.getSelectedFile() != null || this.enigmaMappingsFileChooser.showSaveDialog(this.frame) == JFileChooser.APPROVE_OPTION) - this.controller.saveMappings(this.enigmaMappingsFileChooser.getCurrentDirectory()); + this.controller.saveMappings(this.enigmaMappingsFileChooser.getSelectedFile()); } public void close() { -- cgit v1.2.3