┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 094402f90..321938323 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -105,9 +105,11 @@ 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(str);
+ const QUrl url = QUrl::fromUserInput(str);
if (url.isValid()) {
urls.append(url);
+ } else {
+ qWarning() << "Invalid URL: " << str;
}
}