ToDo List asc/desc toggle sorting does not work.
Original Reporter info from Mantis: KevinOfOz @kevinofoz
-
Reporter name: Kevin Jesshope
Original Reporter info from Mantis: KevinOfOz @kevinofoz
- Reporter name: Kevin Jesshope
Description:
asc/desc toggle sorting does not work in components\todolist\ToDoListLaz.lpk
The lvToDo.OnColumnClick in todolist.pas breaks the asc/desc sort. TListView automatically toggles the sort direction and records the sort column. Trying to manage sort direction in OnColumnClick ends up toggling it twice. Removing the OnColumnClick procedure entirely causes the expected behaviour of the sort.
Steps to reproduce:
In the ToDo List window click on the column header. Should sort asc. It does.
A second click on the same column header should turn the search to desc. It does not.
Mantis conversion info:
- Mantis ID: 36717
- OS: Win64
- OS Build: Win 10 1909
- Build: FPC 3.3.1 svn
- Platform: Lazarus IDE v2.1.0
- Version: 2.0.7 (SVN)
- Fixed in revision: r62653 (#68c2c03a)