From: Arjun AK Date: Tue, 10 Feb 2015 05:51:53 +0000 (+0530) Subject: Assume links passed via cmdline args are local files X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/2305e34cc335327497b0c7715b458f9eb86405fa 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 --- 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 {