mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 09:03:57 -07:00
[DeckEditor] Fix undo/redo clearing legality
This commit is contained in:
parent
2f10634ca2
commit
aa1c9d8cc2
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue