diff --git a/src/declarativeimports/core/iconitem.cpp b/src/declarativeimports/core/iconitem.cpp index 20437fc5b..f0cb2eb3a 100644 --- a/src/declarativeimports/core/iconitem.cpp +++ b/src/declarativeimports/core/iconitem.cpp @@ -73,9 +73,6 @@ IconItem::IconItem(QQuickItem *parent) connect(this, &QQuickItem::windowChanged, this, &IconItem::schedulePixmapUpdate); - connect(this, &IconItem::overlaysChanged, - this, &IconItem::schedulePixmapUpdate); - connect(this, &IconItem::implicitWidthChanged, this, &IconItem::implicitWidthChanged2); connect(this, &IconItem::implicitHeightChanged, this, &IconItem::implicitHeightChanged2); @@ -280,6 +277,7 @@ void IconItem::setOverlays(const QStringList &overlays) return; } m_overlays = overlays; + schedulePixmapUpdate(); emit overlaysChanged(); }