🐛 Fixed the disabled window when starting a new game

main
Isabell Pflug 2 years ago
parent 1af86b4542
commit d1de26b0c0

@ -95,6 +95,7 @@ void MainWindow::buttonPressed(int row, int column) {
} }
void MainWindow::newGame() { void MainWindow::newGame() {
MainWindow::setEnabled(false);
QMessageBox newGameDialog; QMessageBox newGameDialog;
newGameDialog.setText("Do you really want to start a new game?"); newGameDialog.setText("Do you really want to start a new game?");
newGameDialog.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel); newGameDialog.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
@ -103,6 +104,7 @@ void MainWindow::newGame() {
refreshButtonGrid(); refreshButtonGrid();
ui->lcdScore->display(0); ui->lcdScore->display(0);
} }
MainWindow::setEnabled(true);
} }
// initialisation functions // initialisation functions

Loading…
Cancel
Save