mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
nullcheck concede action
This commit is contained in:
parent
5381562a5e
commit
3e00bf96d0
1 changed files with 8 additions and 4 deletions
|
|
@ -807,8 +807,10 @@ void TabGame::startGame(bool _resuming)
|
|||
game->getGameMetaInfo()->setStarted(true);
|
||||
static_cast<GameScene *>(gameView->scene())->rearrange();
|
||||
|
||||
aConcede->setText(tr("&Concede"));
|
||||
aConcede->setEnabled(true);
|
||||
if (aConcede != nullptr) {
|
||||
aConcede->setText(tr("&Concede"));
|
||||
aConcede->setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
void TabGame::stopGame()
|
||||
|
|
@ -826,8 +828,10 @@ void TabGame::stopGame()
|
|||
|
||||
scene->clearViews();
|
||||
|
||||
aConcede->setText(tr("&Concede"));
|
||||
aConcede->setEnabled(false);
|
||||
if (aConcede != nullptr) {
|
||||
aConcede->setText(tr("&Concede"));
|
||||
aConcede->setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
void TabGame::closeGame()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue