Fix a crash in QDialog.

Call d->helperDone before deleting 'this'.

Change-Id: I06224f4d3a868dccd505b1f1d3ed56af6f339ba3
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
Friedemann Kleint 2012-01-10 14:57:16 +01:00 committed by Qt by Nokia
parent 7776beacf7
commit c95aea407b

View File

@ -520,10 +520,10 @@ int QDialog::exec()
setAttribute(Qt::WA_ShowModal, wasShowModal);
int res = result();
if (deleteOnClose)
delete this;
if (d->nativeDialogInUse)
d->helperDone(static_cast<QDialog::DialogCode>(res), d->platformHelper());
if (deleteOnClose)
delete this;
return res;
}