Fix error messags on cmdline arguments

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

REVIEW: 123163
remotes/origin/Applications/15.04
Ronnie Thomas 11 years ago committed by Albert Astals Cid
parent c11c734caf
commit 0877dfd5f8
  1. 4
      shell/okular_main.cpp

@ -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;
}

Loading…
Cancel
Save