mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 17:01:22 +00:00
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:
parent
b86d0def39
commit
2305e34cc3
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue