Commit bd422b09 authored by Harald Sitter's avatar Harald Sitter

make relative urlis work

parent 052d1213
......@@ -27,6 +27,7 @@
#include <KIO/CopyJob>
#include <QDebug>
#include <QDir>
class Application : public QObject
{
......@@ -34,7 +35,8 @@ class Application : public QObject
public slots:
QUrl fileArgument()
{
return QUrl::fromLocalFile(QCoreApplication::arguments().value(1, QString()));
return QUrl::fromUserInput(QCoreApplication::arguments().value(1, QString()),
QDir::currentPath());
}
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