Commit 14c936ea authored by Krzysztof Pyrkosz's avatar Krzysztof Pyrkosz Committed by Albert Astals Cid
Browse files

Fix for CUPS printing

Okular was checking for Q_WS_X11 definition (which is not available since Qt 5) to detect CUPS, so detection always fails making CUPS parameters ignored.

REVIEW: 127036
parent a704fbce
......@@ -233,7 +233,7 @@ bool FilePrinter::pdf2psAvailable()
bool FilePrinter::cupsAvailable()
{
#ifdef Q_WS_X11
#if defined(Q_OS_UNIX) && !defined(Q_OS_OSX)
// Ideally we would have access to the private Qt method
// QCUPSSupport::cupsAvailable() to do this as it is very complex routine.
// However, if CUPS is available then QPrinter::numCopies() will always return 1
......
Supports Markdown
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