From 0309bb18185f77c425cf7c69508f049c439eedb0 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 3 Oct 2016 01:05:42 +0200 Subject: [PATCH] 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... --- src/global.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.47.3