[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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