chat code

This commit is contained in:
Max-Wilhelm Bruker 2009-08-23 16:25:10 +02:00
parent 8daa81e462
commit 5d32bb8bc4
14 changed files with 85 additions and 28 deletions

View file

@ -42,12 +42,6 @@ void GameSelector::actRefresh()
client->listGames();
}
void GameSelector::statusChanged(ProtocolStatus status)
{
if (status == StatusDisconnected)
disableGameList();
}
void GameSelector::checkResponse(ServerResponse response)
{
createButton->setEnabled(true);
@ -84,7 +78,6 @@ void GameSelector::actJoin()
void GameSelector::enableGameList()
{
connect(client, SIGNAL(gameListEvent(ServerGame *)), gameListModel, SLOT(updateGameList(ServerGame *)));
connect(client, SIGNAL(statusChanged(ProtocolStatus)), this, SLOT(statusChanged(ProtocolStatus)));
client->listGames();
show();
}