mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-26 15:02:12 +08:00
23 lines
845 B
Diff
23 lines
845 B
Diff
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());
|