summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qcups.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/painting/qcups.cpp')
-rw-r--r--src/gui/painting/qcups.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qcups.cpp b/src/gui/painting/qcups.cpp
index 1618924..dd6ec80 100644
--- a/src/gui/painting/qcups.cpp
+++ b/src/gui/painting/qcups.cpp
@@ -133,7 +133,8 @@ QCUPSSupport::QCUPSSupport()
if (!isAvailable())
return;
- prnCount = _cupsGetDests(&printers);
+ // Update the available printer count
+ qt_cups_num_printers = prnCount = _cupsGetDests(&printers);
for (int i = 0; i < prnCount; ++i) {
if (printers[i].is_default) {