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
This commit is contained in:
Arjun AK 2015-02-10 11:21:53 +05:30
parent b86d0def39
commit 2305e34cc3

View 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 {