mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
Forward opponent deck view signals to deck view container as well instead of just the player deck view signals. (#6283)
Took 25 minutes Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
8f80996515
commit
dbd1d30ca8
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ void TabbedDeckViewContainer::addOpponentDeckView(const DeckList &opponentDeck,
|
||||||
opponentDeckViews[opponentId]->setDeck(opponentDeck);
|
opponentDeckViews[opponentId]->setDeck(opponentDeck);
|
||||||
} else {
|
} else {
|
||||||
auto *opponentDeckView = new DeckView(this);
|
auto *opponentDeckView = new DeckView(this);
|
||||||
|
connect(opponentDeckView, &DeckView::newCardAdded, playerDeckView, &DeckViewContainer::newCardAdded);
|
||||||
|
|
||||||
opponentDeckView->setDeck(opponentDeck);
|
opponentDeckView->setDeck(opponentDeck);
|
||||||
|
|
||||||
addTab(opponentDeckView, QString("%1's Deck").arg(opponentName));
|
addTab(opponentDeckView, QString("%1's Deck").arg(opponentName));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue