Took 11 minutes
This commit is contained in:
Lukas Brübach 2025-10-03 11:23:17 +02:00
parent 694cfc1fa1
commit a021df214d

View file

@ -712,7 +712,7 @@ void TabGame::processPlayerLeave(Player *leavingPlayer)
QMenu *menu = leavingPlayer->getPlayerMenu()->getPlayerMenu(); QMenu *menu = leavingPlayer->getPlayerMenu()->getPlayerMenu();
if (menu) { if (menu) {
// Find and remove the QAction pointing to this menu // Find and remove the QAction pointing to this menu
QList<QAction*> actions = gameMenu->actions(); QList<QAction *> actions = gameMenu->actions();
for (QAction *act : actions) { for (QAction *act : actions) {
if (act->menu() == menu) { if (act->menu() == menu) {
gameMenu->removeAction(act); gameMenu->removeAction(act);