Minor bugfixes

This commit is contained in:
Max-Wilhelm Bruker 2009-03-14 00:02:22 +01:00
parent a11f93df4d
commit e31cfd32b1
9 changed files with 26 additions and 17 deletions

View file

@ -84,6 +84,8 @@ Game::Game(CardDatabase *_db, Client *_client, QGraphicsScene *_scene, QMenu *_a
cardMenu->addAction(aRearrange);
dlgStartGame = new DlgStartGame(db);
connect(dlgStartGame, SIGNAL(newDeckLoaded(const QStringList &)), client, SLOT(submitDeck(const QStringList &)));
connect(dlgStartGame, SIGNAL(finished(int)), this, SLOT(readyStart(int)));
}
Game::~Game()
@ -139,10 +141,16 @@ void Game::playerListReceived(QList<ServerPlayer *> playerList)
restartGameDialog();
}
void Game::readyStart(int foo)
{
Q_UNUSED(foo);
client->readyStart();
}
void Game::restartGameDialog()
{
dlgStartGame->exec();
client->submitDeck(dlgStartGame->getDeckList());
dlgStartGame->show();
}
void Game::gameEvent(ServerEventData *msg)