From kde-commits Thu Mar 28 11:59:43 2013 From: Viranch Mehta Date: Thu, 28 Mar 2013 11:59:43 +0000 To: kde-commits Subject: [kmines/viranch/qtquick] src/qml: Do not press the cell if its is flagged or questioned Message-Id: <20130328115943.3DBDBA610E () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=136447241701793 Git commit cedf9959a67618eb2cc7f5566c13997fd46c6577 by Viranch Mehta. Committed on 08/08/2012 at 00:42. Pushed by viranch into branch 'viranch/qtquick'. Do not press the cell if its is flagged or questioned M +1 -1 src/qml/CellItem.qml http://commits.kde.org/kmines/cedf9959a67618eb2cc7f5566c13997fd46c6577 diff --git a/src/qml/CellItem.qml b/src/qml/CellItem.qml index 4dd9e43..3e46dd3 100644 --- a/src/qml/CellItem.qml +++ b/src/qml/CellItem.qml @@ -42,7 +42,7 @@ KgCore.CanvasItem { acceptedButtons: Qt.LeftButton | Qt.RightButton enabled: !revealed && border=3D=3D"" onPressed: { - if (mouse.button =3D=3D Qt.LeftButton) { + if (mouse.button =3D=3D Qt.LeftButton && cellState=3D=3D0) { cell.pressed =3D true; } }