mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
chat code
This commit is contained in:
parent
8daa81e462
commit
5d32bb8bc4
14 changed files with 85 additions and 28 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue