Skip to content
Snippets Groups Projects
Unverified Commit 0f91025a authored by Arjun AK's avatar Arjun AK
Browse files

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
parent 0eff5fa0
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment