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:
parent
c990f38a5d
commit
cc37a8cf41
@ -238,8 +238,8 @@ QAccessibleInterface *QAccessibleMenuItem::child(int index) const
|
|||||||
|
|
||||||
int QAccessibleMenuItem::navigate(RelationFlag relation, int entry, QAccessibleInterface **target) const
|
int QAccessibleMenuItem::navigate(RelationFlag relation, int entry, QAccessibleInterface **target) const
|
||||||
{
|
{
|
||||||
if (entry < 0) {
|
|
||||||
*target = 0;
|
*target = 0;
|
||||||
|
if (entry < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user