Commit 0877dfd5 authored by Ronnie Thomas's avatar Ronnie Thomas Committed by Albert Astals Cid

Fix error messags on cmdline arguments

The --print and the --page arguments were showing wrong error messages. This patch fixes it.

REVIEW: 123163
parent c11c734c
......@@ -138,14 +138,14 @@ Status main(const QStringList &paths, const QString &serializedOptions)
if (ShellUtils::showPrintDialog(serializedOptions) && paths.count() > 1)
{
QTextStream stream(stderr);
stream << i18n( "Error: Can't open more than one document with the --presentation switch" ) << endl;
stream << i18n( "Error: Can't open more than one document with the --print switch" ) << endl;
return Error;
}
if (!ShellUtils::page(serializedOptions).isEmpty() && paths.count() > 1)
{
QTextStream stream(stderr);
stream << i18n( "Error: Can't open more than one document with the --presentation switch" ) << endl;
stream << i18n( "Error: Can't open more than one document with the --page switch" ) << endl;
return Error;
}
......
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