contentstorage/caclient/src/caentry.cpp
changeset 107 b34d53f6acdf
parent 98 d2f833ab7940
child 112 dbfb5e38438b
--- a/contentstorage/caclient/src/caentry.cpp	Fri Jul 23 14:03:00 2010 +0300
+++ b/contentstorage/caclient/src/caentry.cpp	Fri Aug 06 13:40:46 2010 +0300
@@ -421,10 +421,8 @@
 HbIcon CaEntry::makeIcon(const QSize &size) const
 {
     CACLIENTTEST_FUNC_ENTRY("CaEntry::makeIcon");
-    HbIcon icon;
-    if (CaIconCache::cache()->exist(*this,size)) {
-        icon = CaIconCache::cache()->icon(*this,size);
-    } else {
+    HbIcon icon = CaIconCache::cache()->icon(*this,size);
+    if (icon.isNull()) {
         icon = m_d->makeIcon(size);
         CaIconCache::cache()->insert(*this, size, icon);
     }