summaryrefslogtreecommitdiffstats
path: root/tdeio
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio')
-rw-r--r--tdeio/tdeio/tdefileitem.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tdeio/tdeio/tdefileitem.cpp b/tdeio/tdeio/tdefileitem.cpp
index 0b3b020fb..98013f1aa 100644
--- a/tdeio/tdeio/tdefileitem.cpp
+++ b/tdeio/tdeio/tdefileitem.cpp
@@ -621,11 +621,7 @@ TQString KFileItem::iconName()
KURL url = mostLocalURL(isLocalURL);
//kdDebug() << "finding icon for " << url.url() << " : " << m_pMimeType->name() << endl;
- if ( !d ) {
- d = new KFileItemPrivate();
- }
- d->iconName = determineMimeType()->icon(url, isLocalURL);
- return d->iconName;
+ return determineMimeType()->icon(url, isLocalURL);
}
int KFileItem::overlays() const