[DeckDockWidget] Fix swap not auto-expanding tree (#6443)

This commit is contained in:
RickyRister 2025-12-23 06:45:27 -08:00 committed by GitHub
parent be17ee1902
commit 01e8e4d589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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