From 52109a5ac7aa02bbabca9981b23393b829c62c33 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 27 Sep 2014 20:43:21 -0500 Subject: Fix accidental regression introduced in prior commit (cherry picked from commit e1f2a0bb29b86336aab930894c85ed7bd26e4848) --- kio/kio/kfileitem.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'kio') diff --git a/kio/kio/kfileitem.cpp b/kio/kio/kfileitem.cpp index 5504ca079..256e47ac1 100644 --- a/kio/kio/kfileitem.cpp +++ b/kio/kio/kfileitem.cpp @@ -588,11 +588,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 -- cgit v1.2.1