From: Peter Penz Date: Thu, 29 May 2008 20:19:26 +0000 (+0000) Subject: assure that the cut item cache gets updated too when invoking IconManager::updatePrev... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/b96686e5916189afe545ac0c460d7659a4b5902d assure that the cut item cache gets updated too when invoking IconManager::updatePreviews() svn path=/trunk/KDE/kdebase/apps/; revision=814274 --- diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp index 2a3827134..a8ccc9ed1 100644 --- a/src/iconmanager.cpp +++ b/src/iconmanager.cpp @@ -84,8 +84,9 @@ void IconManager::updatePreviews() } killJobs(); - KFileItemList itemList; + m_cutItemsCache.clear(); + KFileItemList itemList; const int rowCount = m_dolphinModel->rowCount(); for (int row = 0; row < rowCount; ++row) { const QModelIndex index = m_dolphinModel->index(row, 0); @@ -94,6 +95,7 @@ void IconManager::updatePreviews() } generatePreviews(itemList); + updateCutItems(); } void IconManager::generatePreviews(const KFileItemList& items)