crash fix, translation fix
This commit is contained in:
parent
fc1b028166
commit
98a04668a0
3 changed files with 9 additions and 2 deletions
|
@ -86,3 +86,4 @@ SOURCES += src/counter.cpp \
|
||||||
src/phasestoolbar.cpp \
|
src/phasestoolbar.cpp \
|
||||||
src/chatwidget.cpp
|
src/chatwidget.cpp
|
||||||
TRANSLATIONS += translations/cockatrice_de.ts translations/cockatrice_en.ts
|
TRANSLATIONS += translations/cockatrice_de.ts translations/cockatrice_en.ts
|
||||||
|
CONFIG += qt debug
|
||||||
|
|
|
@ -77,6 +77,9 @@ void GameSelector::actJoin()
|
||||||
|
|
||||||
void GameSelector::enableGameList()
|
void GameSelector::enableGameList()
|
||||||
{
|
{
|
||||||
|
if (isVisible())
|
||||||
|
return;
|
||||||
|
|
||||||
connect(client, SIGNAL(gameListEvent(ServerGame *)), gameListModel, SLOT(updateGameList(ServerGame *)));
|
connect(client, SIGNAL(gameListEvent(ServerGame *)), gameListModel, SLOT(updateGameList(ServerGame *)));
|
||||||
client->listGames();
|
client->listGames();
|
||||||
show();
|
show();
|
||||||
|
@ -84,7 +87,10 @@ void GameSelector::enableGameList()
|
||||||
|
|
||||||
void GameSelector::disableGameList()
|
void GameSelector::disableGameList()
|
||||||
{
|
{
|
||||||
disconnect(client, 0, this, 0);
|
if (!isVisible())
|
||||||
|
return;
|
||||||
|
|
||||||
|
disconnect(client, 0, gameListModel, 0);
|
||||||
hide();
|
hide();
|
||||||
gameListModel->cleanList();
|
gameListModel->cleanList();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1160,7 +1160,7 @@
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/messagelogwidget.cpp" line="215"/>
|
<location filename="../src/messagelogwidget.cpp" line="215"/>
|
||||||
<source>%1 sets counter "%2" to %3 (%4%5).</source>
|
<source>%1 sets counter "%2" to %3 (%4%5).</source>
|
||||||
<translation>%1 setzt Zählmarke "%2" auf %3% (%4%5).</translation>
|
<translation type="unfinished">%1 setzt Zählmarke "%2" auf %3 (%4%5).</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>%1 is looking at the top %2 cards of %3.</source>
|
<source>%1 is looking at the top %2 cards of %3.</source>
|
||||||
|
|
Loading…
Reference in a new issue