Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cardtable.py
diff options
context:
space:
mode:
Diffstat (limited to 'cardtable.py')
-rw-r--r--cardtable.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cardtable.py b/cardtable.py
index 608d8c5..e66437e 100644
--- a/cardtable.py
+++ b/cardtable.py
@@ -74,7 +74,8 @@ class CardTable(gtk.EventBox):
# do it once
self.set_size_request(size, size)
self._workspace_size = size
- self.load_game(None, self.data, self.cards_data)
+ if self.data:
+ self.load_game(None, self.data, self.cards_data)
def load_game(self, widget, data, grid):
self.data = data