src/hbwidgets/popups/hbnotificationdialogcontent.cpp
changeset 6 c3690ec91ef8
parent 2 06ff229162e9
child 7 923ff622b8b9
--- a/src/hbwidgets/popups/hbnotificationdialogcontent.cpp	Fri Jun 11 13:58:22 2010 +0300
+++ b/src/hbwidgets/popups/hbnotificationdialogcontent.cpp	Wed Jun 23 18:33:25 2010 +0300
@@ -36,7 +36,10 @@
 
 void HbNotificationDialogContent::setIcon(const HbIcon &icon)
 {
-    if(!mIconItem) {
+    delete mIconItem;
+    mIconItem = 0;
+
+    if(!icon.isNull()) {    
         mIconItem = style()->createPrimitive(
                 HbStyle::P_NotificationDialog_icon, this);
         Q_CHECK_PTR(mIconItem);