summaryrefslogtreecommitdiffstats
path: root/demos/declarative/minehunt/minehunt.cpp
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-11-12 00:23:27 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-11-12 00:23:27 (GMT)
commit6e49bbc11a0cbe2f596f26066256154b0a5b23be (patch)
tree2d7cb412d212187c9b07a9f6d9fcd2b461a70936 /demos/declarative/minehunt/minehunt.cpp
parent1d228b5d532dc158d1c9ac3347168cdc11378779 (diff)
parent7a81735272b5ee065f499a492cca4b4a703e0659 (diff)
downloadQt-6e49bbc11a0cbe2f596f26066256154b0a5b23be.zip
Qt-6e49bbc11a0cbe2f596f26066256154b0a5b23be.tar.gz
Qt-6e49bbc11a0cbe2f596f26066256154b0a5b23be.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11
Diffstat (limited to 'demos/declarative/minehunt/minehunt.cpp')
-rw-r--r--demos/declarative/minehunt/minehunt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/declarative/minehunt/minehunt.cpp b/demos/declarative/minehunt/minehunt.cpp
index 709d945..aaaaaac 100644
--- a/demos/declarative/minehunt/minehunt.cpp
+++ b/demos/declarative/minehunt/minehunt.cpp
@@ -211,7 +211,7 @@ bool MinehuntGame::flip(int row, int col)
bool MinehuntGame::flag(int row, int col)
{
TileData *t = tile(row, col);
- if(!t || !playing)
+ if(!t || !playing || t->flipped())
return false;
t->setHasFlag(!t->hasFlag());