diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-19 09:42:44 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-19 09:44:41 (GMT) |
commit | 6d6df0e2b63f0103ec1f19b4b856b106e295d618 (patch) | |
tree | 5f80378826c2619892625cfe5e0980f302cf31e0 | |
parent | 81f5cc4d938ff3a381358efa5d900517d66a80dd (diff) | |
download | Qt-6d6df0e2b63f0103ec1f19b4b856b106e295d618.zip Qt-6d6df0e2b63f0103ec1f19b4b856b106e295d618.tar.gz Qt-6d6df0e2b63f0103ec1f19b4b856b106e295d618.tar.bz2 |
Removed an assert in the print dialog on windows
This assert was checking that the parent widget for the print dialog
was already created. That's useless since we immediately after call
winId().
Task-number: QTBUG-8684
Reviewed-by: gabi
-rw-r--r-- | src/gui/dialogs/qprintdialog_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qprintdialog_win.cpp b/src/gui/dialogs/qprintdialog_win.cpp index 1061660..38c8759 100644 --- a/src/gui/dialogs/qprintdialog_win.cpp +++ b/src/gui/dialogs/qprintdialog_win.cpp @@ -141,7 +141,7 @@ static void qt_win_setup_PRINTDLGEX(PRINTDLGEX *pd, QWidget *parent, if (d->ep->printToFile) pd->Flags |= PD_PRINTTOFILE; - Q_ASSERT(parent != 0 && parent->testAttribute(Qt::WA_WState_Created)); + Q_ASSERT(parent); pd->hwndOwner = parent->window()->winId(); pd->lpPageRanges[0].nFromPage = qMax(pdlg->fromPage(), pdlg->minPage()); pd->lpPageRanges[0].nToPage = (pdlg->toPage() > 0) ? qMin(pdlg->toPage(), pdlg->maxPage()) : 1; |