diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2012-01-18 11:04:02 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-19 11:31:22 +0100 |
commit | 1e29040c17dd867b067ff95094c4a6f99761a8d8 (patch) | |
tree | ec5455d181bc4097c2f3f9cec5bd2add1c08efaa /src/gui/kernel/qplatformintegrationplugin_qpa.cpp | |
parent | 97a8dff3c07b0aa14d1f89f4364183982f52c58a (diff) |
Prevent menubar related crashes
The native menubar interface does not communicate menubar destruction
down to the implementation, so we cannot keep naked pointers (otherwise
they become dangling). This happens often while running autotests as
windows, menus, widgets, etc. are quickly created, tested, and then
destroyed.
Work-around the crashes for now by using QWeakPointer. A proper fix will
need to be investigated to prevent the menubars hash from holding
dangling key pointers.
Change-Id: Ie8e50cbc52f9510e844fc3c0c5ae6a0865320282
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/gui/kernel/qplatformintegrationplugin_qpa.cpp')
0 files changed, 0 insertions, 0 deletions