mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-10 12:23:58 -07:00
remove deckHashChanged
This commit is contained in:
parent
18a2f68b7f
commit
13b3a6f65c
3 changed files with 3 additions and 2 deletions
|
|
@ -424,7 +424,6 @@ void DeckEditorDeckDockWidget::setDeck(DeckLoader *_deck)
|
||||||
deckLoader->setParent(this);
|
deckLoader->setParent(this);
|
||||||
deckModel->setDeckList(deckLoader->getDeckList());
|
deckModel->setDeckList(deckLoader->getDeckList());
|
||||||
connect(deckLoader, &DeckLoader::deckLoaded, deckModel, &DeckListModel::rebuildTree);
|
connect(deckLoader, &DeckLoader::deckLoaded, deckModel, &DeckListModel::rebuildTree);
|
||||||
connect(deckLoader->getDeckList(), &DeckList::deckHashChanged, deckModel, &DeckListModel::deckHashChanged);
|
|
||||||
|
|
||||||
emit requestDeckHistoryClear();
|
emit requestDeckHistoryClear();
|
||||||
historyManagerWidget->setDeckListModel(deckModel);
|
historyManagerWidget->setDeckListModel(deckModel);
|
||||||
|
|
|
||||||
|
|
@ -714,7 +714,7 @@ QString DeckList::getDeckHash() const
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invalidates the cached deckHash and emits the deckHashChanged signal.
|
* Invalidates the cached deckHash.
|
||||||
*/
|
*/
|
||||||
void DeckList::refreshDeckHash()
|
void DeckList::refreshDeckHash()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -284,6 +284,7 @@ bool DeckListModel::setData(const QModelIndex &index, const QVariant &value, con
|
||||||
|
|
||||||
emitRecursiveUpdates(index);
|
emitRecursiveUpdates(index);
|
||||||
deckList->refreshDeckHash();
|
deckList->refreshDeckHash();
|
||||||
|
emit deckHashChanged();
|
||||||
|
|
||||||
emit dataChanged(index, index);
|
emit dataChanged(index, index);
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -422,6 +423,7 @@ QModelIndex DeckListModel::addCard(const ExactCard &card, const QString &zoneNam
|
||||||
cardNode->setCardCollectorNumber(printingInfo.getProperty("num"));
|
cardNode->setCardCollectorNumber(printingInfo.getProperty("num"));
|
||||||
cardNode->setCardProviderId(printingInfo.getProperty("uuid"));
|
cardNode->setCardProviderId(printingInfo.getProperty("uuid"));
|
||||||
deckList->refreshDeckHash();
|
deckList->refreshDeckHash();
|
||||||
|
emit deckHashChanged();
|
||||||
}
|
}
|
||||||
sort(lastKnownColumn, lastKnownOrder);
|
sort(lastKnownColumn, lastKnownOrder);
|
||||||
emitRecursiveUpdates(parentIndex);
|
emitRecursiveUpdates(parentIndex);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue