diff --git a/cockatrice/src/client/ui/window_main.cpp b/cockatrice/src/client/ui/window_main.cpp index 6d6d4aa49..51e4cb06f 100644 --- a/cockatrice/src/client/ui/window_main.cpp +++ b/cockatrice/src/client/ui/window_main.cpp @@ -223,6 +223,11 @@ void MainWindow::actSinglePlayer() if (!ok) return; + startLocalGame(numberPlayers); +} + +void MainWindow::startLocalGame(int numberPlayers) +{ aConnect->setEnabled(false); aRegister->setEnabled(false); aForgotPassword->setEnabled(false); diff --git a/cockatrice/src/client/ui/window_main.h b/cockatrice/src/client/ui/window_main.h index 0c52200ce..be2cf1577 100644 --- a/cockatrice/src/client/ui/window_main.h +++ b/cockatrice/src/client/ui/window_main.h @@ -126,6 +126,8 @@ private: }; void exitCardDatabaseUpdate(); + void startLocalGame(int numberPlayers); + QList tabMenus; QMenu *cockatriceMenu, *dbMenu, *helpMenu, *trayIconMenu; QAction *aConnect, *aDisconnect, *aSinglePlayer, *aWatchReplay, *aDeckEditor, *aFullScreen, *aSettings, *aExit,