summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/accessible/qaccessible.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp
index d9fcd6e4e2..e62f426418 100644
--- a/src/gui/accessible/qaccessible.cpp
+++ b/src/gui/accessible/qaccessible.cpp
@@ -1070,8 +1070,10 @@ QColor QAccessibleInterface::backgroundColor() const
QAccessibleInterface *QAccessibleEvent::accessibleInterface() const
{
QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(m_object);
- if (!iface)
+ if (!iface) {
+ qWarning() << "Cannot create accessible interface for object: " << m_object;
return 0;
+ }
if (m_child >= 0) {
QAccessibleInterface *child = iface->child(m_child);