diff --git a/src/declarativeimports/core/iconitem.cpp b/src/declarativeimports/core/iconitem.cpp index b72ff9f55..f61945124 100644 --- a/src/declarativeimports/core/iconitem.cpp +++ b/src/declarativeimports/core/iconitem.cpp @@ -82,7 +82,9 @@ void IconItem::setSource(const QVariant &source) m_svgIcon = 0; } else if (source.canConvert()) { - m_svgIcon = new Plasma::Svg(this); + if (!m_svgIcon) { + m_svgIcon = new Plasma::Svg(this); + } //try as a svg toolbar icon m_svgIcon->setImagePath("toolbar-icons/" + source.toString().split("-").first());