Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/activity.py b/activity.py
index aba9d9b..deb6e17 100644
--- a/activity.py
+++ b/activity.py
@@ -158,7 +158,11 @@ class MemorizeActivity(Activity):
if self.metadata['mime_type'] == 'application/x-memorize-project':
self.toolbox.set_current_toolbar(_TOOLBAR_PLAY)
- self.game.change_game(None, file_path, 4, 'file', self.metadata['title'], self.metadata['icon-color'])
+ if self.metadata.has_key('icon-color'):
+ color = self.metadata['icon-color']
+ else:
+ color = profile.get_color().to_string()
+ self.game.change_game(None, file_path, 4, 'file', self.metadata['title'], color)
def change_mode(self, notebook, index):
if index == _TOOLBAR_CREATE: