X-Git-Url: http://git.maemo.org/git/?p=qmemory;a=blobdiff_plain;f=mainwindow.cpp;h=3bdfb6d01b4d64ec46fb4a9caaee617182e1aadd;hp=70fd57cc611b447e1a16f906db15b2f7cdd77ffc;hb=44f2521902036db1caced5a4f418e78ef3a686ab;hpb=2c930692d1472c797cae05f6f942c3a39faabef8;ds=sidebyside diff --git a/mainwindow.cpp b/mainwindow.cpp index 70fd57c..3bdfb6d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -9,8 +9,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { - bestScore=0; - readSettings(); + bestScore=0; + readSettings(); ui->setupUi(this); statusLed = new QLed(ui->verticalLayoutWidget); ui->horizontalLayout_4->insertWidget(0,statusLed); @@ -75,8 +75,11 @@ void MainWindow::sbagliato(int score){ sscore.append("\n Best score: "); sscore.append(QString::number(bestScore)); QMessageBox::warning(this, tr("End Game"),sscore,QMessageBox::Escape); - //tread.genera(); - exit(0); + bestScore=0; + readSettings(); + tread.genera(); + + //exit(0); } void MainWindow::disableAll(){