┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorArjun AK <[email protected]>2015-02-10 11:21:53 +0530
committerArjun AK <[email protected]>2015-02-10 11:21:53 +0530
commit2305e34cc335327497b0c7715b458f9eb86405fa (patch)
treeff105a5f98dc96ee8ab7d4e61ccecf0a881bbac5 /src/main.cpp
parentb86d0def3924391e90fc582f719447e2ecdfa014 (diff)
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
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<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 {