From: David Faure Date: Sun, 2 Oct 2016 23:05:42 +0000 (+0200) Subject: Pass current dir explicitly to QUrl::fromUserInput X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/0309bb18185f77c425cf7c69508f049c439eedb0?ds=inline 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... --- diff --git a/src/global.cpp b/src/global.cpp index d87a29c7a..3d6d7dd5e 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -24,9 +24,10 @@ QList Dolphin::validateUris(const QStringList& uriList) { + const QString currentDir = QDir::currentPath(); QList 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 {