Consider if the setting is set on the game info first.

Took 4 minutes
This commit is contained in:
Lukas Brübach 2025-08-13 18:58:20 +02:00
parent 18fdf94fb2
commit 3e383e2d36

View file

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