mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 07:08:05 +02:00
Tile: small fix.
This commit is contained in:
parent
ca4ebe424a
commit
e5d083734a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user