mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-03-12 13:12:56 -07:00
[DeckEditor] Fix undo/redo clearing legality (#6675)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user