Summary: | Make sort of search result list persistent | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Andreas <hohenegger> |
Component: | search | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | gjditchfield |
Priority: | NOR | ||
Version: | 5.18.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/pim/eventviews/commit/59afb8ff462a5da831a8daf3ebe064846f556504 | Version Fixed In: | |
Sentry Crash Report: |
Description
Andreas
2021-08-25 13:43:49 UTC
The issue is evidently in EventViews::ListView here https://github.com/KDE/eventviews/blob/master/src/list/listview.cpp There is a hard coded sort order via d->mTreeWidget->sortItems(StartDateTime_Column, Qt::AscendingOrder); in ListView::updateView() probably causing this behaviour. The order should probably be set to StartDateTime_Column only initially. I only do not know what else depends on this as it looks like a conscious decision. A possibly relevant merge request was started @ https://invent.kde.org/pim/eventviews/-/merge_requests/38 Git commit 59afb8ff462a5da831a8daf3ebe064846f556504 by Glen Ditchfield. Committed on 28/08/2021 at 00:56. Pushed by gditchfield into branch 'release/21.08'. Preserve sorting in the ListView When an incidence editor changes an incidence, the ListViews in the Event View and the Search Dialog update, and re-sort themselves by the starting date in ascending order, overriding the user's choice. This patch tracks changes to the view's sort column and order, and also saves them in the application settings. M +15 -1 src/list/listview.cpp M +2 -0 src/list/listview.h https://invent.kde.org/pim/eventviews/commit/59afb8ff462a5da831a8daf3ebe064846f556504 Tested and confirm that the patch fixes the issue. |