Fix navigate returning invalid pointer.

Navigate would return a random pointer here when asked for example for
not handled relations (label etc).

Change-Id: Iec4de94e6f76f14e89b43fe7327d98878aad58ee
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
This commit is contained in:
Frederik Gladhorn 2011-11-24 14:01:57 +01:00 committed by Qt by Nokia
parent c990f38a5d
commit cc37a8cf41

View File

@ -238,8 +238,8 @@ QAccessibleInterface *QAccessibleMenuItem::child(int index) const
int QAccessibleMenuItem::navigate(RelationFlag relation, int entry, QAccessibleInterface **target) const
{
*target = 0;
if (entry < 0) {
*target = 0;
return -1;
}