[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kmines/viranch/qtquick] src/qml: Do not press the cell if its is flagged or questioned
From:       Viranch Mehta <viranch.mehta () gmail ! com>
Date:       2013-03-28 11:59:43
Message-ID: 20130328115943.3DBDBA610E () git ! kde ! org
[Download RAW message or body]

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==""
         onPressed: {
-            if (mouse.button == Qt.LeftButton) {
+            if (mouse.button == Qt.LeftButton && cellState==0) {
                 cell.pressed = true;
             }
         }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic