X-Git-Url: http://git.maemo.org/git/?p=vexed;a=blobdiff_plain;f=mainwindow.cpp;fp=mainwindow.cpp;h=b7346c4c78d22dbd5a099e4b4a74e5662f9fe966;hp=b78f9f8ec18dc957e497a2ff4af6a56ea4ea996b;hb=8eee59bbca77eff0b84050a6860d7e1acbe6f9b4;hpb=6c9fbeb1b4cda4d08076565aa30a3b0bf4d530ec;ds=sidebyside diff --git a/mainwindow.cpp b/mainwindow.cpp index b78f9f8..b7346c4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -122,6 +122,11 @@ void MainWindow::movesChanged(int moves) void MainWindow::solved(int moves) { + if(inSolution) + { + inSolution=false; + return; + } PlayField *pf=pack->levelAt(levelNo); Settings().saveHiscore(pack->getTitle(),pf->title, moves); levelHiscore=moves; @@ -175,5 +180,8 @@ void MainWindow::solve() confirm.setStandardButtons(QMessageBox::Yes | QMessageBox::No); int confirmation=confirm.exec(); if(confirmation==QMessageBox::Yes) + { + inSolution=true; ui->playwidget->showSolution(); + } }