Remove invalid assert

The table interface may be implemented without having a QObject.

Change-Id: I59b9bef29494296149bc1023db933b7c5d762cac
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
This commit is contained in:
Frederik Gladhorn 2014-08-01 16:38:35 +02:00
parent fc931e5595
commit fc36b834a6

View File

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