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 =
parser.value(QStringLiteral("view"));
messageFile = QUrl::fromLocalFile(filename);
if (!messageFile.isValid()) {
messageFile = QUrl();
messageFile.setPath(filename);
}
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