wm: mastermind-qt

Download patch

ref: 8c093d1624593f420fe4cc40636b3cc383d6eb64
parent: 5340ee0af285499868c51af6051845e3d5857870
author: mkf <mkf@hp.lan>
date: Wed Apr 26 10:46:18 EDT 2023

minor fixes

--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -1,7 +1,6 @@
 #include "mainwindow.h"
 #include "ui_mainwindow.h"
 
-#include <QtGlobal>
 #include <QMessageBox>
 #include <QInputDialog>
 #include <QApplication>
@@ -132,7 +131,7 @@
     }
     else if(win)
         return;
-    lives = 999;
+    lives = INT_MAX;
     ui->lcdLives->display(9);
     /* if the game is over */
     ui->buttonGuess->setEnabled(true);
@@ -157,7 +156,6 @@
         ui->spinGuess->setMinimum(pow(10, len - 1));
     }
     /* you pressed cancel "by mistake" ? too bad! your fault. */
-    qInfo() << res;
     return res;
 }
 void MainWindow::action_giveup(){