qt5base-lts/tests/auto/widgets
Sergio Martins c082d84d5d Fix QLabel crash if buddy's lifetime is too short
If buddy is deleted then QLabel will still try to deliver the
shortcut event to it, in QLabel::event(), and cras.

Besides connecting to destroyed() which alone fixes the crash,
also hardened it and guarded against dereferencing null buddy,
in the unlikely event of someone adding features to QLabel.

The second part is suitable for backporting to the LTS branches.

Task-Id: QTBUG-66841
Change-Id: Ib6a36a9f99cee31afe1f88eb77f5b6cafb8b1086
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2018-03-08 22:36:49 +00:00
..
dialogs Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
effects Set sharedPainter correctly for QGraphicsEffect 2017-12-12 20:21:07 +00:00
graphicsview Blacklist tst_QGraphicsView::itemsInRect_cosmeticAdjust on Ubuntu 2018-03-05 07:27:17 +00:00
itemviews QHeaderView: fix inconsistent saved state, ignored during restore 2018-03-07 05:29:16 +00:00
kernel Blacklist tst_QApplication::touchEventPropagation on openSUSE 2018-03-02 07:21:04 +00:00
styles Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
util Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
widgets Fix QLabel crash if buddy's lifetime is too short 2018-03-08 22:36:49 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00