Fix exception when exiting showDialog
This commit was merged in pull request #22.
This commit is contained in:
1 parent
3cdf425435
commit
16df6a26c6
2 files changed
+5
-6
No files matched your search
@@ -34,9 +34,8 @@ public class SaveMazeMenuItem extends JMenuItem
|
||||
if(returnVal == JFileChooser.APPROVE_OPTION) {
|
||||
System.out.println("You chose to save to this file: " +
|
||||
fileChooser.getSelectedFile().getName());
|
||||
String filename = fileChooser.getSelectedFile().getPath();
|
||||
mazeApp.getMazeAppModel().saveToFile(filename);
|
||||
}
|
||||
|
||||
String filename = fileChooser.getSelectedFile().getPath();
|
||||
mazeApp.getMazeAppModel().saveToFile(filename);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user