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