actually use isAncestor

Change-Id: I12180137a256c33d3e603238537c81a7059ba65f
This commit is contained in:
Marco Martin 2014-11-04 15:17:06 +01:00
parent 36cd79b590
commit e6a0d09607

View File

@ -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();
}
}
}