From 3e7ad37f5617f7f571fbd7b4aeba1d492271af33 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 27 Sep 2014 18:49:29 -0500 Subject: Repair all known Konqueror performance regressions caused by early calls to expensive mimetype operations These accidental errors span most TDE releases and many KDE 3.x releases This resolves Bug 699 --- konqueror/listview/konq_listviewitems.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'konqueror/listview/konq_listviewitems.cc') diff --git a/konqueror/listview/konq_listviewitems.cc b/konqueror/listview/konq_listviewitems.cc index e9a14a871..d5665313f 100644 --- a/konqueror/listview/konq_listviewitems.cc +++ b/konqueror/listview/konq_listviewitems.cc @@ -106,10 +106,14 @@ void KonqListViewItem::updateContents() setText(tmpColumn->displayInColumn,m_fileitem->group()); break; case TDEIO::UDS_FILE_TYPE: - setText(tmpColumn->displayInColumn,m_fileitem->mimeComment()); + if (m_fileitem->isMimeTypeKnown()) { + setText(tmpColumn->displayInColumn,m_fileitem->mimeComment()); + } break; case TDEIO::UDS_MIME_TYPE: - setText(tmpColumn->displayInColumn,m_fileitem->mimetype()); + if (m_fileitem->isMimeTypeKnown()) { + setText(tmpColumn->displayInColumn,m_fileitem->mimetype()); + } break; case TDEIO::UDS_URL: setText(tmpColumn->displayInColumn,m_fileitem->url().prettyURL()); -- cgit v1.2.1