mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
[DeckEditor] Fix undo/redo clearing legality (#6675)
This commit is contained in:
parent
15a1d5440b
commit
e79bbc67b9
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue