From 0dc2b5e083cf5b89be20acd76d93e223f5144485 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Sun, 4 Nov 2012 10:32:27 +0100 Subject: [PATCH] Accessibility: Warn if an event cannot create an interface for some reason. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I87d0290286243f8ead114e238798c9a7b882d978 Reviewed-by: Jan Arve Sæther --- src/gui/accessible/qaccessible.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index d9fcd6e..e62f426 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); -- 2.7.4