mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
Update PrintingSelector properly on DeckListModel::dataChanged
This commit is contained in:
parent
279aa8c836
commit
3195a5ab68
1 changed files with 5 additions and 0 deletions
|
|
@ -89,6 +89,11 @@ PrintingSelector::PrintingSelector(QWidget *parent,
|
|||
cardSelectionBarLayout->addWidget(nextCardButton);
|
||||
|
||||
layout->addWidget(cardSelectionBar);
|
||||
|
||||
connect(deckModel, &DeckListModel::dataChanged, this, [this]() {
|
||||
// We have to delay this or else we hit a race condition where the data isn't actually updated yet.
|
||||
QTimer::singleShot(100, this, &PrintingSelector::updateDisplay);
|
||||
});
|
||||
}
|
||||
|
||||
void PrintingSelector::updateSortOrder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue