crash with Qt 6.1 fixed

This commit is contained in:
Uwe Rathmann 2021-04-26 15:11:19 +02:00
parent 71a791918a
commit 91232e845c
1 changed files with 3 additions and 1 deletions

View File

@ -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