aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/Main.java b/src/main/java/Main.java
index a544001..6d82ef3 100644
--- a/src/main/java/Main.java
+++ b/src/main/java/Main.java
@@ -219,7 +219,7 @@ public class Main extends JFrame {
System.out.println(".txt path has not been set. Launching chooserPane");
String path = showTextFileChooser();
textPath = path;
- COMPLETED_DIR = path.substring(0, path.lastIndexOf("/"));
+ COMPLETED_DIR = path.substring(0, path.lastIndexOf(File.separator));
try {
if (!textPath.equals("")) {
showWarning("File has been set.\nMake sure you add a new line for each URL");
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage