summaryrefslogtreecommitdiff
path: root/libre/kile/kile-local-url.patch
blob: 4d829a640ee7ce7ba8ef555101231dd8e4f0de07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/main.cpp b/src/main.cpp
index 0e58cfa1..d3e43d10 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -164,7 +164,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
 				kile->openDocument(readDataFromStdin());
 			}
 			else {
-				const QUrl url = QUrl::fromUserInput(argument);
+				const QUrl url = QUrl::fromUserInput(argument, QDir::currentPath(), QUrl::AssumeLocalFile);
 
 				if(isProject(url)) {
 					kile->openProject(url);
@@ -190,7 +190,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
 				interface->call("openDocument", readDataFromStdin());
 			}
 			else {
-				const QUrl url = QUrl::fromUserInput(argument);
+				const QUrl url = QUrl::fromUserInput(argument, QDir::currentPath(), QUrl::AssumeLocalFile);
 
 				if(isProject(url)) {
 					interface->call("openProject", url.url());