qt5base-lts/tests/auto/qshortcut
Konstantin Ritt 549b2fa246 don't crash when destroying the shortcuts
as shortcutDestroyed(..) modifies the shortcuts list.
disconnect from shortcutDestroyed() first, or operate on a detach()-ed list

this was uncovered by QList::removaAll() optimization patch.

(cherry picked from commit e95de30977291a251660f72baa84b5ff244711fb)

Change-Id: Ie0b371c54458ce85f4d36430de8080a5e78d8b7f
Reviewed-on: http://codereview.qt-project.org/4585
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2011-09-12 12:55:27 +02:00
..
.gitignore Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qshortcut.pro Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
tst_qshortcut.cpp don't crash when destroying the shortcuts 2011-09-12 12:55:27 +02:00