From 91232e845ccf64af44408cbec69ed65c3cc2c867 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 26 Apr 2021 15:11:19 +0200 Subject: [PATCH] crash with Qt 6.1 fixed --- src/controls/QskQuickItem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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