mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
[TabGame] Fix concede removing player without waiting for server (#6622)
This commit is contained in:
parent
c6dc7eee64
commit
a90997353b
1 changed files with 0 additions and 2 deletions
|
|
@ -488,14 +488,12 @@ void TabGame::actConcede()
|
||||||
QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::Yes)
|
QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::Yes)
|
||||||
return;
|
return;
|
||||||
emit game->getPlayerManager()->activeLocalPlayerConceded();
|
emit game->getPlayerManager()->activeLocalPlayerConceded();
|
||||||
player->setConceded(true);
|
|
||||||
} else {
|
} else {
|
||||||
if (QMessageBox::question(this, tr("Unconcede"),
|
if (QMessageBox::question(this, tr("Unconcede"),
|
||||||
tr("You have already conceded. Do you want to return to this game?"),
|
tr("You have already conceded. Do you want to return to this game?"),
|
||||||
QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::Yes)
|
QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::Yes)
|
||||||
return;
|
return;
|
||||||
emit game->getPlayerManager()->activeLocalPlayerUnconceded();
|
emit game->getPlayerManager()->activeLocalPlayerUnconceded();
|
||||||
player->setConceded(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue