]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/iconmanager.cpp
Fix dolphin to only enable the Cut context menu option if the file capabilites suppor...
[dolphin.git] / src / iconmanager.cpp
index 2a382713489496b44239bed6024ff39bd15c2a8c..a8ccc9ed1d090ac9b018162117a96dbce2e95955 100644 (file)
@@ -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)