QTfrontend/net/newnetclient.cpp
changeset 7727 bd252cacabe8
parent 7725 4ad05a478c6c
child 7728 664738870325
--- a/QTfrontend/net/newnetclient.cpp	Sun Oct 07 11:59:42 2012 -0400
+++ b/QTfrontend/net/newnetclient.cpp	Sun Oct 07 23:33:09 2012 +0400
@@ -379,12 +379,15 @@
                                 else emit setMyReadyStatus(setFlag);
                             }
                             emit setReadyStatus(nick, setFlag);
+                            m_lobbyPlayersModel->setFlag(nick, PlayersListModel::Ready, setFlag);
                         }
                         break;
 
                 // flag indicating if a player is a registered user
                 case 'u':
                         emit setRegisteredStatus(nicks, setFlag);
+                        foreach(const QString & nick, nicks)
+                            m_lobbyPlayersModel->setFlag(nick, PlayersListModel::Registered, setFlag);
                         break;
 
                 // flag indicating if a player is the host/master of the room
@@ -398,6 +401,7 @@
                             }
 
                             emit setRoomMasterStatus(nick, setFlag);
+                            m_lobbyPlayersModel->setFlag(nick, PlayersListModel::RoomAdmin, setFlag);
                         }
                         break;
 
@@ -409,6 +413,7 @@
                                 emit adminAccess(setFlag);
 
                             emit setAdminStatus(nick, setFlag);
+                            m_lobbyPlayersModel->setFlag(nick, PlayersListModel::ServerAdmin, setFlag);
                         }
                         break;