From ecf49658f7d9b8329d9aba0a5b9cba1bf82c5f52 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sun, 10 May 2020 11:15:38 +0200 Subject: [PATCH] crash fixed, when updates happen on deconstruction of the window --- src/controls/QskFocusIndicator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/QskFocusIndicator.cpp b/src/controls/QskFocusIndicator.cpp index f52789b6..4ad21744 100644 --- a/src/controls/QskFocusIndicator.cpp +++ b/src/controls/QskFocusIndicator.cpp @@ -110,7 +110,7 @@ void QskFocusIndicator::onFocusItemChanged() { m_data->resetConnections(); - if ( window() == nullptr ) + if ( !( window() && window()->contentItem() ) ) return; // We want to be on top, but do we cover all corner cases ???