diff options
| author | David Faure <[email protected]> | 2016-10-03 01:05:42 +0200 |
|---|---|---|
| committer | David Faure <[email protected]> | 2016-10-03 01:05:42 +0200 |
| commit | 0309bb18185f77c425cf7c69508f049c439eedb0 (patch) | |
| tree | 573c560394a5d8077e767f7cbf1916aee1e7657c /src | |
| parent | f54174f9f6b99aac433e81cad9965a7f31786ce7 (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...
Diffstat (limited to 'src')
| -rw-r--r-- | src/global.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<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 { |
