mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Focus tab for quit game dialog (#5670)
This commit is contained in:
parent
56bd11794e
commit
3d0f4868df
1 changed files with 3 additions and 1 deletions
|
|
@ -506,10 +506,12 @@ void TabGame::actConcede()
|
|||
bool TabGame::leaveGame()
|
||||
{
|
||||
if (!gameClosed) {
|
||||
if (!spectator)
|
||||
if (!spectator) {
|
||||
tabSupervisor->setCurrentWidget(this);
|
||||
if (QMessageBox::question(this, tr("Leave game"), tr("Are you sure you want to leave this game?"),
|
||||
QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::Yes)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!replay)
|
||||
sendGameCommand(Command_LeaveGame());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue