[DeckEditor] Fix undo/redo clearing legality (#6675)

This commit is contained in:
RickyRister
2026-03-08 15:57:39 -07:00
committed by GitHub
parent 15a1d5440b
commit e79bbc67b9

View File

@@ -85,6 +85,8 @@ void DeckListModel::rebuildTree()
}
endResetModel();
refreshCardFormatLegalities();
}
int DeckListModel::rowCount(const QModelIndex &parent) const
@@ -649,7 +651,6 @@ void DeckListModel::setDeckList(const QSharedPointer<DeckList> &_deck)
deckList = _deck;
}
rebuildTree();
refreshCardFormatLegalities();
emit deckReplaced();
}