diff options
| author | 2016-08-25 19:57:24 +0200 | |
|---|---|---|
| committer | 2016-08-25 19:57:24 +0200 | |
| commit | 759b9501e1204b91bbe8df645dbe042e6d756ce1 (patch) | |
| tree | b3e4d83fc4a8c08e276e741e4c92310f878a0cbd | |
| parent | And make ClassTransformer public so it can be used (diff) | |
| download | enigma-759b9501e1204b91bbe8df645dbe042e6d756ce1.tar.gz enigma-759b9501e1204b91bbe8df645dbe042e6d756ce1.tar.xz enigma-759b9501e1204b91bbe8df645dbe042e6d756ce1.zip | |
Fix mapping not beeing saving in the right directory in some case
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/Gui.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
| 719 | public void saveMapping() throws IOException | 719 | public void saveMapping() throws IOException |
| 720 | { | 720 | { |
| 721 | if (this.enigmaMappingsFileChooser.getSelectedFile() != null || this.enigmaMappingsFileChooser.showSaveDialog(this.frame) == JFileChooser.APPROVE_OPTION) | 721 | if (this.enigmaMappingsFileChooser.getSelectedFile() != null || this.enigmaMappingsFileChooser.showSaveDialog(this.frame) == JFileChooser.APPROVE_OPTION) |
| 722 | this.controller.saveMappings(this.enigmaMappingsFileChooser.getCurrentDirectory()); | 722 | this.controller.saveMappings(this.enigmaMappingsFileChooser.getSelectedFile()); |
| 723 | } | 723 | } |
| 724 | 724 | ||
| 725 | public void close() { | 725 | public void close() { |