| Summary: | Sorting order not applied on start in some cases | ||
|---|---|---|---|
| Product: | [Applications] plasma-systemmonitor | Reporter: | Alois Wohlschlager <alois1> |
| Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ahiemstra, nate, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.21.5 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-systemmonitor/commit/d07a633824b653baddad2da6d1fa94ac4aaac39c | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Alois Wohlschlager
2021-05-21 09:56:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-systemmonitor/-/merge_requests/137 Git commit 0fc74c55135632e9cb1b10baf9f645f4c299875a by David Edmundson. Committed on 01/06/2021 at 11:19. Pushed by davidedmundson into branch 'master'. Fix initial sort order BaseTableView is duplicating code in TableViewHeader, this is non-ideal. The other issue, is that we run the lambda whilst doing the initial Repeater population. model.row is outdated when the lambda does run. We're best off running the existing sort method on the delegate which will keep everything in sync. M +0 -3 src/table/BaseTableView.qml M +12 -9 src/table/TableViewHeader.qml https://invent.kde.org/plasma/plasma-systemmonitor/commit/0fc74c55135632e9cb1b10baf9f645f4c299875a Git commit d07a633824b653baddad2da6d1fa94ac4aaac39c by David Edmundson. Committed on 01/06/2021 at 11:21. Pushed by davidedmundson into branch 'Plasma/5.22'. Fix initial sort order BaseTableView is duplicating code in TableViewHeader, this is non-ideal. The other issue, is that we run the lambda whilst doing the initial Repeater population. model.row is outdated when the lambda does run. We're best off running the existing sort method on the delegate which will keep everything in sync. (cherry picked from commit 0fc74c55135632e9cb1b10baf9f645f4c299875a) M +0 -3 src/table/BaseTableView.qml M +12 -9 src/table/TableViewHeader.qml https://invent.kde.org/plasma/plasma-systemmonitor/commit/d07a633824b653baddad2da6d1fa94ac4aaac39c |