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 Pick-to: 6.1 5.15 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
parent
8862685805
commit
973700c546
@ -1112,6 +1112,8 @@ void QUnixPrintWidgetPrivate::updateWidget()
|
||||
widget.printers->insertSeparator(widget.printers->count());
|
||||
widget.printers->addItem(QPrintDialog::tr("Print to File (PDF)"));
|
||||
filePrintersAdded = true;
|
||||
if (widget.printers->count() == 1)
|
||||
_q_printerChanged(0);
|
||||
}
|
||||
if (!printToFile && filePrintersAdded) {
|
||||
widget.printers->removeItem(widget.printers->count()-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user