actually use isAncestor
Change-Id: I12180137a256c33d3e603238537c81a7059ba65f
This commit is contained in:
parent
36cd79b590
commit
e6a0d09607
@ -201,12 +201,14 @@ void AppletInterface::destroyedChanged(bool destroyed)
|
||||
candidate = candidate->parentItem();
|
||||
}
|
||||
|
||||
//Found? remove focus for the whole hyerarchy
|
||||
candidate = focus;
|
||||
if (isAncestor) {
|
||||
//Found? remove focus for the whole hyerarchy
|
||||
candidate = focus;
|
||||
|
||||
while (candidate && candidate != this) {
|
||||
candidate->setFocus(false);
|
||||
candidate = candidate->parentItem();
|
||||
while (candidate && candidate != this) {
|
||||
candidate->setFocus(false);
|
||||
candidate = candidate->parentItem();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user