From fc36b834a6504b2c64c1a1a357edc5e84609389d Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 1 Aug 2014 16:38:35 +0200 Subject: [PATCH] Remove invalid assert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The table interface may be implemented without having a QObject. Change-Id: I59b9bef29494296149bc1023db933b7c5d762cac Reviewed-by: Jan Arve Sæther --- src/gui/accessible/qaccessible.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index f41afd52ef..1aca51741e 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -860,8 +860,7 @@ void QAccessible::updateAccessibility(QAccessibleEvent *event) #ifndef QT_NO_ACCESSIBILITY if (event->type() == QAccessible::TableModelChanged) { - Q_ASSERT(event->object()); - if (QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(event->object())) { + if (QAccessibleInterface *iface = event->accessibleInterface()) { if (iface->tableInterface()) iface->tableInterface()->modelChange(static_cast(event)); }