crash fix, translation fix

This commit is contained in:
Max-Wilhelm Bruker 2009-08-29 18:53:30 +02:00
parent fc1b028166
commit 98a04668a0
3 changed files with 9 additions and 2 deletions

View file

@ -77,6 +77,9 @@ void GameSelector::actJoin()
void GameSelector::enableGameList()
{
if (isVisible())
return;
connect(client, SIGNAL(gameListEvent(ServerGame *)), gameListModel, SLOT(updateGameList(ServerGame *)));
client->listGames();
show();
@ -84,7 +87,10 @@ void GameSelector::enableGameList()
void GameSelector::disableGameList()
{
disconnect(client, 0, this, 0);
if (!isVisible())
return;
disconnect(client, 0, gameListModel, 0);
hide();
gameListModel->cleanList();
}