Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.6.1
-
None
Description
In qaccessiblemenu.cpp,
QAccessibleInterface *getOrCreateMenu(QWidget *menu, QAction *action) { QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(action); if (!iface) { iface = new QAccessibleMenuItem(menu, action); QAccessible::registerAccessibleInterface(iface); } return iface; }
getOrCreateMenu doesn't check if iface is still valid, so when a menu is deleted but its actions aren't, and later those actions are added to another menu, the accessible interfaces of those actions will always be invalid.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-122409 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
541067,4 | QAccessibleMenu: Recreate accessible interface if it's invalid | dev | qt/qtbase | Status: NEW | 0 | 0 |