Fix crash when trying to access accessible parent in dtor
Change-Id: I36a065facc0ea80b3a155eaf646613cbd86fdfac Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>bb10
parent
d46345a49e
commit
1148da5aa8
|
|
@ -501,7 +501,7 @@ QRect QAccessibleTable::rect() const
|
|||
|
||||
QAccessibleInterface *QAccessibleTable::parent() const
|
||||
{
|
||||
if (view()->parent()) {
|
||||
if (view() && view()->parent()) {
|
||||
if (qstrcmp("QComboBoxPrivateContainer", view()->parent()->metaObject()->className()) == 0) {
|
||||
return QAccessible::queryAccessibleInterface(view()->parent()->parent());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue