mark new admin in connected players list

This commit is contained in:
doitux committed 2007-10-03 23:30:41 +00:00
1 parent edee654b1b
commit 38ceeaf68f
1 file changed
+8
@@ -424,6 +424,14 @@ void gameLobbyDialogImpl::removePlayer(unsigned playerId, QString) {
void gameLobbyDialogImpl::newGameAdmin(unsigned playerId, QString)
{
QTreeWidgetItemIterator it(treeWidget_connectedPlayers);
while (*it) {
if ((*it)->data(0, Qt::UserRole) == playerId) {
(*it)->setBackground(0, QBrush(QColor(169,255,140)));
}
++it;
}
if (myPlayerId == playerId)
{
isAdmin = true;