Fix: refresh list also when changes are made to item 0

This commit is contained in:
Twan van Laarhoven
2020-04-23 19:59:47 +02:00
parent bad896898f
commit e9456eea86
+1 -1
View File
@@ -165,7 +165,7 @@ void ItemList::refreshList(bool refresh_current_only) {
} }
// Has the entire list changed? // Has the entire list changed?
if (refresh_current_only && sorted_list == old_sorted_list) { if (refresh_current_only && sorted_list == old_sorted_list) {
if (selected_item_pos > 0) RefreshItem(selected_item_pos); if (selected_item_pos >= 0) RefreshItem(selected_item_pos);
return; return;
} }
// refresh // refresh