diff --git a/src/declarativeimports/core/iconitem.cpp b/src/declarativeimports/core/iconitem.cpp index 1d7921a3e..085f2847f 100644 --- a/src/declarativeimports/core/iconitem.cpp +++ b/src/declarativeimports/core/iconitem.cpp @@ -148,6 +148,10 @@ void IconItem::setSource(const QVariant &source) //fail, use QIcon } else { m_icon = QIcon::fromTheme(sourceString); + if (m_icon.isNull()) { + // fallback for non-theme icons + m_icon = source.value(); + } delete m_svgIcon; m_svgIcon = 0; m_imageIcon = QImage();