summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2016-10-02 23:05:42 (GMT)
committerDavid Faure <faure@kde.org>2016-10-02 23:05:42 (GMT)
commit0309bb18185f77c425cf7c69508f049c439eedb0 (patch)
tree573c560394a5d8077e767f7cbf1916aee1e7657c
parentf54174f9f6b99aac433e81cad9965a7f31786ce7 (diff)
Pass current dir explicitly to QUrl::fromUserInput
It works with QString() but that's a bug, I didn't expect it to work with my fromUserInput code and wrote otherwise in its documentation...
-rw-r--r--src/global.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/global.cpp b/src/global.cpp
index d87a29c..3d6d7dd 100644
--- a/src/global.cpp
+++ b/src/global.cpp
@@ -24,9 +24,10 @@
QList<QUrl> Dolphin::validateUris(const QStringList& uriList)
{
+ const QString currentDir = QDir::currentPath();
QList<QUrl> urls;
foreach (const QString& str, uriList) {
- const QUrl url = QUrl::fromUserInput(str, QString(), QUrl::AssumeLocalFile);
+ const QUrl url = QUrl::fromUserInput(str, currentDir, QUrl::AssumeLocalFile);
if (url.isValid()) {
urls.append(url);
} else {