diff options
| author | Arjun AK <[email protected]> | 2015-02-10 11:21:53 +0530 |
|---|---|---|
| committer | Arjun AK <[email protected]> | 2015-02-10 11:21:53 +0530 |
| commit | 2305e34cc335327497b0c7715b458f9eb86405fa (patch) | |
| tree | ff105a5f98dc96ee8ab7d4e61ccecf0a881bbac5 /src/main.cpp | |
| parent | b86d0def3924391e90fc582f719447e2ecdfa014 (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.cpp | 2 |
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 { |
