summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-03-18 20:23:17 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-19 18:28:43 +0100
commit1148da5aa82e07ccab4b5d4fa2bb7a16f6361515 (patch)
tree41d6f1332469749046bb8c0163ab269f473f3675 /src
parentd46345a49e6d4d180ea0f763f43a3034574d9e4a (diff)
Fix crash when trying to access accessible parent in dtor
Change-Id: I36a065facc0ea80b3a155eaf646613cbd86fdfac Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/accessible/widgets/itemviews.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/accessible/widgets/itemviews.cpp b/src/plugins/accessible/widgets/itemviews.cpp
index 93f962da57..cb34116f32 100644
--- a/src/plugins/accessible/widgets/itemviews.cpp
+++ b/src/plugins/accessible/widgets/itemviews.cpp
@@ -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());
}