Fix QApplication autotest crash when running on multiple screens
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Thu, 1 Mar 2012 11:19:24 +0000 (13:19 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Mar 2012 13:45:23 +0000 (14:45 +0100)
commit62a654cc902197cc99326879076ba53b6509dc67
tree232a0e0fdebf2b5c956f80e432e8870c4d545fdc
parent53229ec8f79c4895e0476d1f3fb950f0427ba427
Fix QApplication autotest crash when running on multiple screens

Screens need to be destroyed in reverse order to ensure the primary
screen stays valid when other screens are destroyed.

Task-number: QTBUG-24300
Change-Id: I9d9d710aa67ec045baa8bf292833ffe7d9eea935
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/plugins/platforms/cocoa/qcocoaintegration.h
src/plugins/platforms/cocoa/qcocoaintegration.mm
src/plugins/platforms/windows/qwindowsscreen.h
src/plugins/platforms/xcb/qxcbconnection.cpp
tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp