Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasBaizer committed May 3, 2018
2 parents 2bdc0d7 + 851aba8 commit 7cd7a67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jointheleague/ir/ExportPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public ExportPanel(JDialog container, String fileName, DetectionList db, CSVHand
String fileWithoutExt = fileName.substring(0, fileName.indexOf('.'));

this.saveDir = new File(Cache.get("SaveDirectory"));
if(!this.saveDir.exists()) {
this.saveDir = new File(System.getProperty("user.dir"));
}
this.fileName = fileWithoutExt + ".csv";

JPanel directoryPanel = new JPanel();
Expand Down

0 comments on commit 7cd7a67

Please sign in to comment.