1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 00:29:41 +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_neighbour->show();
button_neighbour->setFocus();
//qDebug() << isSolved();
if (isRunning && isSolved()) {
isRunning = 0;
switch (QMessageBox::information(this,
"Solved!",
"Hooray, you solved it!\nShuffle again?",
@ -169,7 +169,6 @@ void Tile::swapButtons(QPushButton *button, QPushButton *button_neighbour) {
case 0:
Shuffle();
default:
isRunning = 0;
break;
}
}