Commit 7fd4496b authored by David Faure's avatar David Faure

Fix "kmail --view foo.mbox", relative paths were not supported.

parent 9eeab83b
......@@ -360,11 +360,7 @@ bool KMKernel::handleCommandLine(bool noArgsOpensReader, const QStringList &args
viewOnly = true;
const QString filename =
messageFile = QUrl::fromLocalFile(filename);
if (!messageFile.isValid()) {
messageFile = QUrl();
messageFile = QUrl::fromUserInput(filename, workingDir);
if (!calledWithSession) {
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