From 2305e34cc335327497b0c7715b458f9eb86405fa Mon Sep 17 00:00:00 2001 From: Arjun AK Date: Tue, 10 Feb 2015 11:21:53 +0530 Subject: [PATCH] Assume links passed via cmdline args are local files If not, when the user types 'dolphin nonexistantfile' he will be taken to 'http://nonexistantfile' BUG: 343906 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 321938323..14529005f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -105,7 +105,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) QList urls; const QStringList args = parser.positionalArguments(); foreach (const QString& str, args) { - const QUrl url = QUrl::fromUserInput(str); + const QUrl url = QUrl::fromUserInput(str, QString(), QUrl::AssumeLocalFile); if (url.isValid()) { urls.append(url); } else { -- 2.47.3