[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.2/kdelibs/kio/kio
From: David Faure <faure () kde ! org>
Date: 2009-02-16 12:50:04
Message-ID: 1234788604.535214.5960.nullmailer () svn ! kde ! org
[Download RAW message or body]
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 <kdebug.h>
#include "defaultviewadapter_p.h"
#include <kdirmodel.h>
#include <kfileitem.h>
@@ -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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic