aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorСковорода Никита Андреевич <[email protected]>2015-05-15 00:33:36 +0300
committerСковорода Никита Андреевич <[email protected]>2015-05-15 00:36:04 +0300
commite1e37c01fee3df312970b57b32463ee65bc67366 (patch)
treeb2e02fcab7f3325c299a6f9337199e2bf39e1347
parent0937d80049d748ee7a3e9cbd8cca2336c8bbce97 (diff)
Port relative paths resolving to QUrl::fromUserInput(path, cwd, QUrl::AssumeLocalFile).v15.08.3v15.08.2v15.08.1v15.08.0v15.07.90v15.07.80Applications/15.08
Reviewed by Martin Sandsmark.
-rw-r--r--src/app/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 4c4cd13..0d91dca 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -83,8 +83,7 @@ int main(int argc, char *argv[])
QStringList args = options.positionalArguments();
if (args.count() > 0) {
- QUrl cwd = QUrl::fromLocalFile(QDir::currentPath() + QStringLiteral("/"));
- mw->scan(cwd.resolved(QUrl(args.at(0))));
+ mw->scan(QUrl::fromUserInput(args.at(0), QDir::currentPath(), QUrl::AssumeLocalFile));
}
mw->show();