mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Merge pull request #22 from G-e-n-e-v-e-n-s-i-S/delete-last-card-crash
Fix crash when deleteing last card in set
This commit is contained in:
@@ -180,10 +180,10 @@ void ItemList::refreshList(bool refresh_current_only) {
|
|||||||
// refresh
|
// refresh
|
||||||
// Note: Freeze/Thaw makes flicker worse
|
// Note: Freeze/Thaw makes flicker worse
|
||||||
long item_count = (long)sorted_list.size();
|
long item_count = (long)sorted_list.size();
|
||||||
|
SetItemCount(item_count);
|
||||||
if (item_count == 0) {
|
if (item_count == 0) {
|
||||||
Refresh();
|
Refresh();
|
||||||
} else {
|
} else {
|
||||||
SetItemCount(item_count);
|
|
||||||
// (re)select current item
|
// (re)select current item
|
||||||
findSelectedItemPos();
|
findSelectedItemPos();
|
||||||
focusNone();
|
focusNone();
|
||||||
|
|||||||
Reference in New Issue
Block a user