Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.6
-
None
-
macOS 10.15.3
Qt 5.12.6
-
-
f579be96f7ad0362220f710a03a390d1c1139c52 (qt/qtbase/dev) a5700956af3a23eacd1d69fd31ce3b68cd80ce5c (qt/qtbase/5.15)
Description
Create QMenu with Qt::WA_DeleteOnClose attribute.
Open it.
Click on some action in this menu.
Immediately click somewhere outside (in a really short time frame)
Application crashes.
It looks like menu is already being deleted when second mouse event is dispatched and processed.
Test app and crash report are attached.
Attachments
For Gerrit Dashboard: QTBUG-82349 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
299512,3 | QMenuPrivate::hideMenu - avoid deleting 'q' too early | dev | qt/qtbase | Status: MERGED | +2 | 0 |
300997,2 | QMenuPrivate::hideMenu - avoid deleting 'q' too early | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |