diff --git a/cockatrice/src/interface/widgets/tabs/tab_game.cpp b/cockatrice/src/interface/widgets/tabs/tab_game.cpp index 7458b7814..485843f61 100644 --- a/cockatrice/src/interface/widgets/tabs/tab_game.cpp +++ b/cockatrice/src/interface/widgets/tabs/tab_game.cpp @@ -284,7 +284,7 @@ void TabGame::finishTutorialInitialization() ->getActiveLocalPlayer(game->getPlayerManager()->getLocalPlayerId()) ->getPlayerEventHandler(); diceRollStep.signalName = SIGNAL(logRollDie(Player *, int, const QList &)); - diceRollStep.validator = [this] { return true; }; + diceRollStep.validator = [] { return true; }; diceRollStep.validationHint = tr("Roll a dice using any of these methods."); gamePlaySequence.addStep(diceRollStep); diff --git a/cockatrice/src/interface/widgets/tabs/tab_game.h b/cockatrice/src/interface/widgets/tabs/tab_game.h index 58732da51..16f4660ae 100644 --- a/cockatrice/src/interface/widgets/tabs/tab_game.h +++ b/cockatrice/src/interface/widgets/tabs/tab_game.h @@ -170,17 +170,16 @@ private slots: void processPlayerLeave(PlayerLogic *leavingPlayer); void actResetLayout(); - void hideEvent(QHideEvent *event) override; - protected slots: void closeEvent(QCloseEvent *event) override; + void showEvent(QShowEvent *event) override; + void hideEvent(QHideEvent *event) override; public: TabGame(TabSupervisor *_tabSupervisor, QList &_clients, const Event_GameJoined &event, const QMap &_roomGameTypes); - void showEvent(QShowEvent *event); void finishTutorialInitialization(); void connectToGameState(); void connectToPlayerManager();