Fixed a problem that caused QPrintDialog to invalidate QPrinter.
Fixed a problem that caused QPrintDialog to invalidate QPrinter.

When passing a printer that is set up to print to a PDF file into
QPrintDialog, the print dialog could invalidate the printer and
not update the validity of it in a proper manner.

Task-number: 252873
Reviewed-by: Samuel

radekp/qt,pruiz/wkhtmltopdf-qt,KDE/qt,RLovelett/qt,RLovelett/qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,radekp/qt,pruiz/wkhtmltopdf-qt,radekp/qt,radekp/qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,igor-sfdc/qt-wk,radekp/qt,pruiz/wkhtmltopdf-qt,radekp/qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,radekp/qt,RLovelett/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,KDE/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,KDE/qt,RLovelett/qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,radekp/qt,RLovelett/qt,KDE/qt,KDE/qt,radekp/qt,KDE/qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,KDE/qt,RLovelett/qt,RLovelett/qt,KDE/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,radekp/qt