crash fix
This commit is contained in:
parent
f06af8be43
commit
15aa6a600a
1 changed files with 5 additions and 2 deletions
|
@ -86,6 +86,9 @@ void PlayerListWidget::updatePing(int playerId, int pingTime)
|
|||
void PlayerListWidget::setGameStarted(bool _gameStarted)
|
||||
{
|
||||
gameStarted = _gameStarted;
|
||||
for (int i = 0; i < players.size(); ++i)
|
||||
players[i]->setIcon(2, gameStarted ? QIcon() : notReadyIcon);
|
||||
QMapIterator<int, QTreeWidgetItem *> i(players);
|
||||
while (i.hasNext()) {
|
||||
QTreeWidgetItem *twi = i.next().value();
|
||||
twi->setIcon(2, gameStarted ? QIcon() : notReadyIcon);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue