[gnome-games] mahjongg: Can't select new stone without unselecting existing one



commit 2470fc6ef9aa22fbd72eba8baadc98a23ff310c1
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Apr 13 16:06:42 2012 +1000

    mahjongg: Can't select new stone without unselecting existing one

 mahjongg/src/game-view.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/mahjongg/src/game-view.vala b/mahjongg/src/game-view.vala
index 78f6145..0fcd9b8 100644
--- a/mahjongg/src/game-view.vala
+++ b/mahjongg/src/game-view.vala
@@ -256,6 +256,11 @@ public class GameView : Gtk.DrawingArea
                 game.remove_pair (game.selected_tile, tile);
                 return true;
             }
+            else
+            {
+                game.selected_tile = tile;
+                return true;
+            }
         }
 
         return false;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]