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

@ -86,3 +86,4 @@ SOURCES += src/counter.cpp \
src/phasestoolbar.cpp \
src/chatwidget.cpp
TRANSLATIONS += translations/cockatrice_de.ts translations/cockatrice_en.ts
CONFIG += qt debug

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();
}

View file

@ -1160,7 +1160,7 @@
<message>
<location filename="../src/messagelogwidget.cpp" line="215"/>
<source>%1 sets counter &quot;%2&quot; to %3 (%4%5).</source>
<translation>%1 setzt Zählmarke &quot;%2&quot; auf %3% (%4%5).</translation>
<translation type="unfinished">%1 setzt Zählmarke &quot;%2&quot; auf %3 (%4%5).</translation>
</message>
<message>
<source>%1 is looking at the top %2 cards of %3.</source>