summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-10-27 07:36:23 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-10-27 07:36:23 (GMT)
commit44e9d5264217782762432bb0f4b7c441b4a545cd (patch)
tree4e137eba5c64018fadbcb9a0e77685bf591e3fed /src/gui/dialogs
parent6c83dadea241f2e52d0cbcfa5c81e43c7eaeb90f (diff)
downloadQt-44e9d5264217782762432bb0f4b7c441b4a545cd.zip
Qt-44e9d5264217782762432bb0f4b7c441b4a545cd.tar.gz
Qt-44e9d5264217782762432bb0f4b7c441b4a545cd.tar.bz2
Fixed crash when QPrintDialog parent is a subwidget
Reviewed-by: Trond
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r--src/gui/dialogs/qprintdialog_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qprintdialog_win.cpp b/src/gui/dialogs/qprintdialog_win.cpp
index 843c4e2..51e83ac 100644
--- a/src/gui/dialogs/qprintdialog_win.cpp
+++ b/src/gui/dialogs/qprintdialog_win.cpp
@@ -139,7 +139,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));
- pd->hwndOwner = parent->winId();
+ 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;
pd->nCopies = d->ep->num_copies;