]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Assume links passed via cmdline args are local files
authorArjun AK <arjunak234@gmail.com>
Tue, 10 Feb 2015 05:51:53 +0000 (11:21 +0530)
committerArjun AK <arjunak234@gmail.com>
Tue, 10 Feb 2015 05:51:53 +0000 (11:21 +0530)
If not, when the user types 'dolphin nonexistantfile' he will be
taken to 'http://nonexistantfile'

BUG: 343906

src/main.cpp

index 3219383234c3c3e9111f0db661d0e26b0042da43..14529005fe4bdf142114cc779fb160ec32f4c351 100644 (file)
@@ -105,7 +105,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
     QList<QUrl> 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 {