Otherwise user will have to type "dolphin file:///tmp" instead of
"dolphin /tmp"
REVIEW: 122475
BUG: 343906
QList<QUrl> urls;
const QStringList args = parser.positionalArguments();
foreach (const QString& str, args) {
QList<QUrl> urls;
const QStringList args = parser.positionalArguments();
foreach (const QString& str, args) {
+ const QUrl url = QUrl::fromUserInput(str);
if (url.isValid()) {
urls.append(url);
if (url.isValid()) {
urls.append(url);
+ } else {
+ qWarning() << "Invalid URL: " << str;