Commit bff9e7ae authored by Christoph Feck's avatar Christoph Feck
Browse files

Handle local files as arguments

BUG: 368131
parent 9c8834dd
......@@ -34,6 +34,7 @@
#include <QApplication>
#include <QCommandLineParser>
#include <QDir>
#include <KLocalizedString>
int main(int argc, char *argv [])
......@@ -105,7 +106,7 @@ int main(int argc, char *argv [])
{
for (int i = 0; i < args.count(); i++)
{
mainWindow = new kpMainWindow(QUrl::fromUserInput(args[i]));
mainWindow = new kpMainWindow(QUrl::fromUserInput(args[i], QDir::currentPath(), QUrl::AssumeLocalFile));
mainWindow->show();
}
}
......
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