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,6 +201,7 @@ void AppletInterface::destroyedChanged(bool destroyed)
candidate = candidate->parentItem();
}
if (isAncestor) {
//Found? remove focus for the whole hyerarchy
candidate = focus;
@ -209,6 +210,7 @@ void AppletInterface::destroyedChanged(bool destroyed)
candidate = candidate->parentItem();
}
}
}
setVisible(!destroyed);
}