[DeckEditor] Fix undo/redo clearing legality

This commit is contained in:
RickyRister 2026-03-07 16:57:36 -08:00
parent 2f10634ca2
commit aa1c9d8cc2

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();
}