Printsupport: not necessary to check pointer before to delete it
Change-Id: Ib2a7823224c45b6e9110016b2f5756e1b2fd8f3c Reviewed-by: David Faure <david.faure@kdab.com>bb10
parent
40192995a5
commit
6a3f41aa46
|
|
@ -895,8 +895,7 @@ bool QUnixPrintWidgetPrivate::checkFields()
|
|||
|
||||
void QUnixPrintWidgetPrivate::setupPrinterProperties()
|
||||
{
|
||||
if (propertiesDialog)
|
||||
delete propertiesDialog;
|
||||
delete propertiesDialog;
|
||||
|
||||
propertiesDialog = new QPrintPropertiesDialog(q);
|
||||
propertiesDialog->setResult(QDialog::Rejected);
|
||||
|
|
|
|||
Loading…
Reference in New Issue