QPageSetupWidget - Fix copying of printer settings

Don't copy the dialog settings to the QPrinter before the Print button
is pressed, in case the Cancel button is pressed instead.  The settings
already get copied in the right place.

Change-Id: I84d0053b450cf5839bf1a879af013f305a8fd377
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
This commit is contained in:
John Layt 2013-12-08 11:13:01 +01:00 committed by The Qt Project
parent 77cd033e44
commit 1698369924

View File

@ -457,9 +457,6 @@ void QPageSetupWidget::selectPrinter()
unitChanged(widget.unit->currentIndex());
m_pagePreview->setMargins(m_leftMargin, m_topMargin, m_rightMargin, m_bottomMargin);
// setup printer here the first time
setupPrinter();
}
void QPageSetupWidget::selectPdfPsPrinter(const QPrinter *p)