mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 01:23: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();
|
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