Created attachment 164457 [details] Column sorting issue SUMMARY *** Hello, in the last systemmonitor I can't sort the columns up or down. I can sort a column, but then I can't order any other column. The sorting seems possible only on the default column. The terminal returns this error: TableView.selectionModel.model is not compatible with the model displayed in the view *** STEPS TO REPRODUCE 1. open systemmonitor 2. Try to sort a column 3. Try to sort another column OBSERVED RESULT Systemmonitor can sometimes sort the first colum clicked, but it doesn't sort the others EXPECTED RESULT Sort up/down should always work SOFTWARE/OS VERSIONS Operating System: KaOS (2023) KDE Plasma Version: 5.91.0 KDE Frameworks Version: 5.247.0 Qt Version: 6.6.1 Kernel Version: 6.5.11-1 (64-bit) Graphics Platform: Wayland
the problems seems related to this warning: qrc:/qt/qml/org/kde/ksysguard/table/BaseTableView.qml:55:5: QML TableViewHeader: Cannot change current index: TableView.selectionModel.model is not compatible with the model displayed in the view when a different columm is clicked, QML reject the event as the data model is different from the expected model Looking at the cpp code each column has a model which can be different from model used from other column, so probably only the CPU column has the expected data model and for that it works. Probably the QML side needs a review in order to accept each model, can somebody confirm ?
Columns are sorted using the "Configure Columns" menu item in the three-dor menu. I do agree with the premise that you should be able to sort columns by drag-and-drop, the way you an in other places. Let's make the bug report about that.
*** This bug has been marked as a duplicate of bug 479326 ***