]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Resort items when they have been changed
authorPeter Penz <peter.penz19@gmail.com>
Sat, 10 Dec 2011 11:23:06 +0000 (12:23 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 10 Dec 2011 11:27:09 +0000 (12:27 +0100)
This assures that when renaming an item the sort-position will be adjusted. Thanks to Frank Reininghaus and Janardhan Reddy for the patch and the tests.

BUG: 288311

src/kitemviews/kfileitemmodel.cpp

index 00a856e2569511e68c2e7bb3086bc9143c05ac41..df0270673672dfc7b18d0d19456aa92c1b155068 100644 (file)
@@ -785,6 +785,8 @@ void KFileItemModel::slotRefreshItems(const QList<QPair<KFileItem, KFileItem> >&
     }
 
     emit itemsChanged(itemRangeList, m_roles);
+
+    resortAllItems();
 }
 
 void KFileItemModel::slotClear()