Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
15aa6a60
Commit
15aa6a60
authored
Mar 09, 2010
by
Max-Wilhelm Bruker
Browse files
crash fix
parent
f06af8be
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/playerlistwidget.cpp
View file @
15aa6a60
...
@@ -86,6 +86,9 @@ void PlayerListWidget::updatePing(int playerId, int pingTime)
...
@@ -86,6 +86,9 @@ void PlayerListWidget::updatePing(int playerId, int pingTime)
void
PlayerListWidget
::
setGameStarted
(
bool
_gameStarted
)
void
PlayerListWidget
::
setGameStarted
(
bool
_gameStarted
)
{
{
gameStarted
=
_gameStarted
;
gameStarted
=
_gameStarted
;
for
(
int
i
=
0
;
i
<
players
.
size
();
++
i
)
QMapIterator
<
int
,
QTreeWidgetItem
*>
i
(
players
);
players
[
i
]
->
setIcon
(
2
,
gameStarted
?
QIcon
()
:
notReadyIcon
);
while
(
i
.
hasNext
())
{
QTreeWidgetItem
*
twi
=
i
.
next
().
value
();
twi
->
setIcon
(
2
,
gameStarted
?
QIcon
()
:
notReadyIcon
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment