[DeckDockWidget] Fix swap not auto-expanding tree

This commit is contained in:
RickyRister 2025-12-22 04:41:18 -08:00
parent c12f4e9d2a
commit df53f448d9

View file

@ -642,7 +642,7 @@ bool DeckEditorDeckDockWidget::swapCard(const QModelIndex &currentIndex)
QModelIndex newCardIndex = card ? deckModel->addCard(card, otherZoneName) QModelIndex newCardIndex = card ? deckModel->addCard(card, otherZoneName)
// Third argument (true) says create the card no matter what, even if not in DB // Third argument (true) says create the card no matter what, even if not in DB
: deckModel->addPreferredPrintingCard(cardName, otherZoneName, true); : deckModel->addPreferredPrintingCard(cardName, otherZoneName, true);
recursiveExpand(proxy->mapToSource(newCardIndex)); recursiveExpand(proxy->mapFromSource(newCardIndex));
return true; return true;
} }