mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
crash fix, translation fix
This commit is contained in:
parent
fc1b028166
commit
98a04668a0
3 changed files with 9 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue