Make sure _q_printerChanged is called even if only pdf printer is available
Otherwise things like the pagesRadioButton don't get properly disabled Change-Id: Idc0693b6747f13da5afb22e2187af310a5b454f8 Reviewed-by: Andy Shaw <andy.shaw@qt.io> (cherry picked from commit 973700c54678803a2600dfa60112f29f15705197) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7b3635e013
commit
28431c02c2
@ -1112,6 +1112,8 @@ void QUnixPrintWidgetPrivate::updateWidget()
|
|||||||
widget.printers->insertSeparator(widget.printers->count());
|
widget.printers->insertSeparator(widget.printers->count());
|
||||||
widget.printers->addItem(QPrintDialog::tr("Print to File (PDF)"));
|
widget.printers->addItem(QPrintDialog::tr("Print to File (PDF)"));
|
||||||
filePrintersAdded = true;
|
filePrintersAdded = true;
|
||||||
|
if (widget.printers->count() == 1)
|
||||||
|
_q_printerChanged(0);
|
||||||
}
|
}
|
||||||
if (!printToFile && filePrintersAdded) {
|
if (!printToFile && filePrintersAdded) {
|
||||||
widget.printers->removeItem(widget.printers->count()-1);
|
widget.printers->removeItem(widget.printers->count()-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user