Correct ascending/descending arrows when sorting card and keyword lists

This commit is contained in:
Twan van Laarhoven
2020-06-10 00:47:58 +02:00
parent d27193cdd7
commit 053449d5d4
+1 -1
View File
@@ -198,7 +198,7 @@ void ItemList::sortBy(long column, bool ascending) {
long count = GetColumnCount();
for (long i = 0 ; i < count ; ++i) {
if (i == column) {
SetColumnImage(i, sort_ascending ? 0 : 1); // arrow up/down
SetColumnImage(i, ascending ? 0 : 1); // arrow up/down
} else if (i == sort_by_column) {
SetColumnImage(i, -1);
}