mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -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;
|
QString format = deckStateManager->getMetadata().gameFormat;
|
||||||
if (!format.isEmpty()) {
|
if (!format.isEmpty()) {
|
||||||
getModel()->setActiveFormat(format);
|
|
||||||
formatComboBox->setCurrentIndex(formatComboBox->findData(format));
|
formatComboBox->setCurrentIndex(formatComboBox->findData(format));
|
||||||
} else {
|
} else {
|
||||||
// Ensure no selection is visible initially
|
// Ensure no selection is visible initially
|
||||||
|
|
|
||||||
|
|
@ -599,6 +599,7 @@ 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