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