Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-02-23 01:22:37 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-02-23 01:22:37 (GMT)
commit10b04e611e811bfc44448805da47d75a3f0381aa (patch)
tree073ea23e3469effd2502595bdb1c1dce1c1def74 /activity.py
parented51169a14e590732799e9d8d0e7b6114b2b1ca1 (diff)
Update the map editor when the resources are changed
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index 17a900f..5a6e661 100644
--- a/activity.py
+++ b/activity.py
@@ -224,6 +224,11 @@ class IngeniumMachinaActivity(activity.Activity):
self.edit_map_win = EditMapWin(self.model)
button.page = self.main_notebook.get_n_pages()
self.main_notebook.append_page(self.edit_map_win)
+ # connect signal to know if the resources are updated
+ if self.collect_resources_win is not None:
+ logging.error('Connecting signal resource_updated')
+ self.collect_resources_win.connect('resource_updated',
+ self.edit_map_win.load_resources)
self.main_notebook.set_current_page(button.page)
self.action = EDIT_MAP_ACTION