1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 13:10:37 +02:00

Tile: small fix.

This commit is contained in:
kyak 2011-01-14 22:23:17 +03:00
parent ca4ebe424a
commit e5d083734a

View File

@ -159,8 +159,8 @@ void Tile::swapButtons(QPushButton *button, QPushButton *button_neighbour) {
button->setText("16"); button->setText("16");
button_neighbour->show(); button_neighbour->show();
button_neighbour->setFocus(); button_neighbour->setFocus();
//qDebug() << isSolved();
if (isRunning && isSolved()) { if (isRunning && isSolved()) {
isRunning = 0;
switch (QMessageBox::information(this, switch (QMessageBox::information(this,
"Solved!", "Solved!",
"Hooray, you solved it!\nShuffle again?", "Hooray, you solved it!\nShuffle again?",
@ -169,7 +169,6 @@ void Tile::swapButtons(QPushButton *button, QPushButton *button_neighbour) {
case 0: case 0:
Shuffle(); Shuffle();
default: default:
isRunning = 0;
break; break;
} }
} }