Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2014-07-15 16:52:02 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-07-15 16:52:02 (GMT)
commit4c40e9d4914d24232e8f786b1f4693443380a392 (patch)
tree0b4045e4a83aea804e98e55071f85f9872c1a2f0
parentb4b05f40466a0aeb6a8c7eb24bc82a7177aaffa0 (diff)
Fix notification of found pair on collaboration
-rw-r--r--game.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/game.py b/game.py
index 4ae8d21..af3e14f 100644
--- a/game.py
+++ b/game.py
@@ -239,6 +239,9 @@ class MemorizeGame(GObject.GObject):
pair_key_2 = self.model.grid[identifier]['pairkey']
if pair_key_1 == pair_key_2:
+ if not signal:
+ self.emit('flip-card-signal', identifier)
+
stroke_color, fill_color = \
self.current_player.props.color.split(',')
self.emit('set-border', identifier, stroke_color, fill_color)