qt5base-lts/tests/auto/widgets/dialogs/qdialog
Bradley T. Hughes 5a57ddebf5 Fix tst_QDialog::deleteInExec() crash on Mac OS X
When destroying a window immediately after showing it, we can sometimes
provoke a crash in Cocoa after the show-window-animation has finished
(which appears to assume that the window's view will always be valid).
Prevent the crash by not removing the view from the window. When
recreating a window, we explicitly release the old window, but we do not
release the view, so we can freely add it to the new window (i.e. this
does not introduce new bugs related to recreating the platform window).

Task-number: QTBUG-24977
Change-Id: I466ce75b04785401032a0a2d4a2c494910cd1672
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
2012-04-17 03:28:29 +02:00
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
qdialog.pro Fix tst_QDialog::deleteInExec() crash on Mac OS X 2012-04-17 03:28:29 +02:00
tst_qdialog.cpp Replace Q_WS_WINCE against Q_OS_WINCE. 2012-02-09 10:45:38 +01:00