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
Frederik Gladhorn 2013-03-18 20:23:17 +01:00 committed by The Qt Project
parent d46345a49e
commit 1148da5aa8
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}