Commit f050472d authored by Harald Sitter's avatar Harald Sitter

don't implode if no path was given as argument

parent ba6da538
......@@ -34,7 +34,7 @@ class Application : public QObject
public slots:
QUrl fileArgument()
return QUrl::fromLocalFile(QCoreApplication::arguments().at(1));
return QUrl::fromLocalFile(QCoreApplication::arguments().value(1, QString()));
bool copy(const QUrl &origin, const QUrl &target)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment