mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Consider if the setting is set on the game info first.
Took 4 minutes
This commit is contained in:
parent
18fdf94fb2
commit
3e383e2d36
1 changed files with 8 additions and 6 deletions
|
|
@ -912,12 +912,14 @@ void TabGame::eventGameStateChanged(const Event_GameStateChanged &event,
|
||||||
if (player->getLocal()) {
|
if (player->getLocal()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
DeckList loader;
|
if (gameInfo.share_decklists_on_load()) {
|
||||||
loader.loadFromString_Native(QString::fromStdString(playerInfo.deck_list()));
|
DeckList loader;
|
||||||
QMapIterator<int, TabbedDeckViewContainer *> i(deckViewContainers);
|
loader.loadFromString_Native(QString::fromStdString(playerInfo.deck_list()));
|
||||||
while (i.hasNext()) {
|
QMapIterator<int, TabbedDeckViewContainer *> i(deckViewContainers);
|
||||||
i.next();
|
while (i.hasNext()) {
|
||||||
i.value()->addOpponentDeckView(loader, playerId, player->getName());
|
i.next();
|
||||||
|
i.value()->addOpponentDeckView(loader, playerId, player->getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue