mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33:57 -07:00
refresh legalities in rebuildTree
This commit is contained in:
parent
8f6563e7a8
commit
8967ec6683
2 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,6 @@ void DeckEditorDeckDockWidget::initializeFormats()
|
|||
|
||||
QString format = deckStateManager->getMetadata().gameFormat;
|
||||
if (!format.isEmpty()) {
|
||||
getModel()->setActiveFormat(format);
|
||||
formatComboBox->setCurrentIndex(formatComboBox->findData(format));
|
||||
} else {
|
||||
// Ensure no selection is visible initially
|
||||
|
|
|
|||
|
|
@ -599,6 +599,7 @@ void DeckListModel::setDeckList(const QSharedPointer<DeckList> &_deck)
|
|||
deckList = _deck;
|
||||
}
|
||||
rebuildTree();
|
||||
refreshCardFormatLegalities();
|
||||
emit deckReplaced();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue