]> cloud.milkyroute.net Git - dolphin.git/commit
Make sure that the sort order is correct after renaming
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 14 Aug 2013 22:07:43 +0000 (00:07 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 14 Aug 2013 22:07:43 +0000 (00:07 +0200)
commit7c99a9c2ad4455c65a218c53dfa7f6376f389b66
tree0b2dcaf332ff5f507fc5ad94b41eb6c4e4764620
parent59723fca41a44e4d1ee753e93589027cbdf8d20d
Make sure that the sort order is correct after renaming

KFileItemModel::setData() should not only cause a resorting when the
sort role is changed. The name is always used as a fallback if the sort
role of multiple files is equal, therefore, renaming a file can change
the correct order of the files even if the files are not sorted by
"name".

Unit test included.

BUG: 323518
FIXED-IN: 4.11.1
REVIEW: 111721
src/kitemviews/kfileitemmodel.cpp
src/tests/kfileitemmodeltest.cpp