diff --git a/cockatrice/src/tabs/tab_game.cpp b/cockatrice/src/tabs/tab_game.cpp index 34668ecad..c31f548d6 100644 --- a/cockatrice/src/tabs/tab_game.cpp +++ b/cockatrice/src/tabs/tab_game.cpp @@ -712,7 +712,7 @@ void TabGame::processPlayerLeave(Player *leavingPlayer) QMenu *menu = leavingPlayer->getPlayerMenu()->getPlayerMenu(); if (menu) { // Find and remove the QAction pointing to this menu - QList actions = gameMenu->actions(); + QList actions = gameMenu->actions(); for (QAction *act : actions) { if (act->menu() == menu) { gameMenu->removeAction(act);