Commit 2fb7d5bd authored by Jan Grulich's avatar Jan Grulich
Browse files

Print: enable printing of multiple copies

CCBUG: 419944
parent 8879e236
......@@ -615,7 +615,7 @@ uint PrintPortal::PreparePrint(const QDBusObjectPath &handle,
QVariantMap resultingPageSetup;
// Process back printer settings
resultingSettings.insert(QStringLiteral("n-copies"), QString::number(printer->copyCount()));
resultingSettings.insert(QStringLiteral("n-copies"), QString::number(printer->actualNumCopies()));
resultingSettings.insert(QStringLiteral("resolution"), QString::number(printer->resolution()));
resultingSettings.insert(QStringLiteral("use-color"), printer->colorMode() == QPrinter::Color ? QLatin1String("yes") : QLatin1String("no"));
if (printer->duplex() == QPrinter::DuplexNone) {
......@@ -945,9 +945,9 @@ QStringList PrintPortal::printArguments(const QPrinter *printer, bool useCupsOpt
argList << destination(printer, version);
}
// if (!copies(printer, version).isEmpty()) {
// argList << copies(printer, version);
// }
if (!copies(printer, version).isEmpty()) {
argList << copies(printer, version);
}
if (!jobname(printer, version).isEmpty()) {
argList << jobname(printer, version);
......
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