diff --git a/src/controls/QskQuickItem.cpp b/src/controls/QskQuickItem.cpp index 5afe7a2f..c2164170 100644 --- a/src/controls/QskQuickItem.cpp +++ b/src/controls/QskQuickItem.cpp @@ -720,7 +720,9 @@ void QskQuickItem::itemChange( QQuickItem::ItemChange change, #if 1 auto oldWindow = qskReleasedWindowCounter->window(); - if ( oldWindow && ( oldWindow->activeFocusItem() == this ) ) + + if ( oldWindow && oldWindow->contentItem() + && ( oldWindow->activeFocusItem() == this ) ) { /* Removing an item from the scene might result in