Summary: | inline rename multiple files does not honour sort order | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Sebastian Frei <sebastian> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adrian, emmanuelpescosta099 |
Priority: | NOR | ||
Version: | 2.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-baseapps/3a9b327196a5bfad9ac85dfac310e0e3ab7e573c | Version Fixed In: | 4.9.5 |
Sentry Crash Report: |
Description
Sebastian Frei
2011-11-29 11:53:51 UTC
Thanks for the report, I agree. (internal note: might be already resolved in Dolphin 2.0 due to working with indexes in the new view-engine -> check whether the issue is already resolved) Resetting assignee to default as per bug #305719 I can reproduce it with Dolphin 2.1 (KDE 4.9.2). To create the files for the test, you can run: touch -d 2012-01-01 c; touch -d 2012-02-01 e; touch -d 2012-03-01 a; touch -d 2012-04-01 d; touch -d 2012-05-01 b Thanks Adrían for the nice test case ;-) To fix this, we must do two things: a) Remove the qSort() call in RenameDialog::renameItems(). b) Make sure that DolphinView::selectedItems() returns a list of items sorted by index. Right now, the order in this list is undefined because it is generated from a set of indices. I think that this should better be fixed inside the SelectionManager though (which could return a sorted list, rather than a set, from its selectedItems() method). Review-Request: https://git.reviewboard.kde.org/r/107718/ Git commit 3a9b327196a5bfad9ac85dfac310e0e3ab7e573c by Emmanuel Pescosta. Committed on 17/12/2012 at 14:02. Pushed by emmanuelp into branch 'KDE/4.9'. Fix Bug 287829 - inline rename multiple files does not honour sort order FIXED-IN: 4.9.5 REVIEW: 107718 M +4 -2 dolphin/src/views/dolphinview.cpp M +0 -5 dolphin/src/views/renamedialog.cpp http://commits.kde.org/kde-baseapps/3a9b327196a5bfad9ac85dfac310e0e3ab7e573c |