]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make use of the "resort all items timer" in KFileItemModel::slotRefreshItems
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 24 Aug 2013 16:13:56 +0000 (18:13 +0200)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 24 Aug 2013 16:13:56 +0000 (18:13 +0200)
to avoid too much expensive resorting calls, in case of many refresh items signals.

Followup to patch 111146

CCBUG: 303873
CCBUG: 299565
BUG: 323789
FIXED-IN: 4.11.1
REVIEW: 111195

src/kitemviews/kfileitemmodel.cpp

index 70e8834a665fabfea16a4ca9533a9322ad877884..58a135cd178f6d2577dfbe43987c786503b2f12f 100644 (file)
@@ -948,7 +948,7 @@ void KFileItemModel::slotRefreshItems(const QList<QPair<KFileItem, KFileItem> >&
     emit itemsChanged(itemRangeList, changedRoles);
 
     if (changedRoles.contains(sortRole())) {
-        resortAllItems();
+        m_resortAllItemsTimer->start();
     }
 }