SVN commit 926922 by dfaure: Backport r907918 (makes the code more logical) M +2 -6 kmimetyperesolver.cpp --- branches/KDE/4.2/kdelibs/kio/kio/kmimetyperesolver.cpp #926921:926922 @@ -19,6 +19,7 @@ */ #include "kmimetyperesolver.h" +#include #include "defaultviewadapter_p.h" #include #include @@ -148,13 +149,11 @@ } int nextDelay = 0; - bool isVisible = false; QModelIndex index = findVisibleIcon(); if (index.isValid()) { // Found a visible item. const int numFound = m_pendingIndexes.removeAll(index); Q_ASSERT(numFound == 1); - isVisible = true; } else { // No more visible items. // Do the unvisible ones, then, but with a bigger delay, if so configured @@ -164,11 +163,8 @@ KFileItem item = m_dirModel->itemForIndex(index); if (!item.isNull()) { // check that item still exists if (!item.isMimeTypeKnown()) { // check if someone did it meanwhile - //kDebug() << "Determining mimetype for " << item.url(); item.determineMimeType(); - if (isVisible) { - m_dirModel->itemChanged(index); - } + m_dirModel->itemChanged(index); } } m_timer.start(nextDelay); // singleshot