From: Peter Penz Date: Sat, 10 Dec 2011 11:23:06 +0000 (+0100) Subject: Resort items when they have been changed X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/780e42533a6ae37dbc09df52a76c9eb59e59571e?ds=sidebyside Resort items when they have been changed 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 --- diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 00a856e25..df0270673 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -785,6 +785,8 @@ void KFileItemModel::slotRefreshItems(const QList >& } emit itemsChanged(itemRangeList, m_roles); + + resortAllItems(); } void KFileItemModel::slotClear()