diff --git a/ThinkPink/mainwindow.cpp b/ThinkPink/mainwindow.cpp index de5a213..8d4e237 100644 --- a/ThinkPink/mainwindow.cpp +++ b/ThinkPink/mainwindow.cpp @@ -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