Skip to content

Do not sort categories table while adding rows#2229

Merged
Holt59 merged 1 commit intoModOrganizer2:masterfrom
Liderate:categories_fix
Apr 1, 2025
Merged

Do not sort categories table while adding rows#2229
Holt59 merged 1 commit intoModOrganizer2:masterfrom
Liderate:categories_fix

Conversation

@Liderate
Copy link
Contributor

This addresses an issue where items were being placed in an unexpected row. The documentation for QTableWidget::setItem shows that the row will be sorted if the item is in the active sort column, and that sorting can be disabled before setting multiple items of a row and enabled afterwards. So, this enables sorting after the initial table is filled, disables sorting before multiple items are set in the same row, and enables sorting after multiple items are set. It should solve #2226.

https://doc.qt.io/qt-6/qtablewidget.html#setItem

@Holt59 Holt59 merged commit bff386d into ModOrganizer2:master Apr 1, 2025
2 of 3 checks passed
@Liderate Liderate deleted the categories_fix branch April 2, 2025 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants