From bf11e847fbe487eb1047c34ecfae674c1bef4c6d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 2 Oct 2014 08:44:23 -0500 Subject: Fix dirtree module stall due to unneeded mime magic calls This resolves Bug 699 --- konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'konqueror/sidebar/trees/dirtree_module') diff --git a/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp b/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp index 4c54775dd..bff59f1a2 100644 --- a/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp +++ b/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp @@ -360,8 +360,8 @@ void KonqSidebarDirTreeModule::listDirectory( KonqSidebarTreeItem *item ) if (! fileItem->isDir() ) { KMimeType::Ptr ptr; - - if ( fileItem->url().isLocalFile() && (((ptr=fileItem->determineMimeType())!=0) && (ptr->is("inode/directory") || m_showArchivesAsFolders) && ((!ptr->property("X-TDE-LocalProtocol").toString().isEmpty()) ))) { + + if ( fileItem->url().isLocalFile() && (((ptr=fileItem->mimeTypePtrFast())!=0) && (ptr->is("inode/directory") || m_showArchivesAsFolders) && ((!ptr->property("X-TDE-LocalProtocol").toString().isEmpty()) ))) { kdDebug()<<"Something not really a directory"<url().prettyURL() << " is not a directory!" << endl; @@ -429,7 +429,7 @@ void KonqSidebarDirTreeModule::slotNewItems( const KFileItemList& entries ) if (! fileItem->isDir() ) { KMimeType::Ptr ptr; - if ( fileItem->url().isLocalFile() && (( (ptr=fileItem->determineMimeType())!=0) && (ptr->is("inode/directory") || m_showArchivesAsFolders) && ((!ptr->property("X-TDE-LocalProtocol").toString().isEmpty()) ))) { + if ( fileItem->url().isLocalFile() && (( (ptr=fileItem->mimeTypePtrFast())!=0) && (ptr->is("inode/directory") || m_showArchivesAsFolders) && ((!ptr->property("X-TDE-LocalProtocol").toString().isEmpty()) ))) { kdDebug()<<"Something really a directory"<