From 3937b0453e312f57e6c95fe67a99d95605785d14 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 12 Feb 2015 16:35:28 +0100 Subject: [PATCH] Fix PlasmaCore.IconItem initialization when using QPixmap on it I was getting the m_pixmapIcon cleared some times, instead of the m_iconPixmap. This made it forget about my image. m_iconPixmap should be renamed to something else. Reviewed and done in collaboration with David Edmindson --- src/declarativeimports/core/iconitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/core/iconitem.cpp b/src/declarativeimports/core/iconitem.cpp index 5da5265b9..03f40c4d9 100644 --- a/src/declarativeimports/core/iconitem.cpp +++ b/src/declarativeimports/core/iconitem.cpp @@ -314,7 +314,7 @@ void IconItem::loadPixmap() //final pixmap to paint QPixmap result; if (size <= 0) { - m_pixmapIcon = QPixmap(); + m_iconPixmap = QPixmap(); m_animation->stop(); update(); return;