remove deckHashChanged

This commit is contained in:
RickyRister 2025-11-30 02:21:52 -08:00
parent 18a2f68b7f
commit 13b3a6f65c
3 changed files with 3 additions and 2 deletions

View file

@ -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);

View file

@ -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()
{ {

View file

@ -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);