diff --git a/src/declarativeimports/core/windowthumbnail.cpp b/src/declarativeimports/core/windowthumbnail.cpp index 22ab60177..21e655e58 100644 --- a/src/declarativeimports/core/windowthumbnail.cpp +++ b/src/declarativeimports/core/windowthumbnail.cpp @@ -101,14 +101,14 @@ WindowThumbnail::WindowThumbnail(QQuickItem *parent) connect(this, &QQuickItem::enabledChanged, [this]() { if (!isEnabled()) { stopRedirecting(); - } else { + } else if (isVisible()) { startRedirecting(); } }); connect(this, &QQuickItem::visibleChanged, [this]() { if (!isVisible()) { stopRedirecting(); - } else { + } else if (isEnabled()) { startRedirecting(); } });