Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/resources.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-05-01 07:50:42 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-05-01 07:50:42 (GMT)
commit86a0f2454fa3a9b255cabdcd3f7ab362746925d0 (patch)
treec9e2a7783449785eaedbf97d721eb67c7d336b34 /resources.py
parente3dcaa8629a399628425d5485cecf9ea26bd2cd0 (diff)
Improve synchronization between abms and mapvies
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'resources.py')
-rw-r--r--resources.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources.py b/resources.py
index 6019d07..878f0f1 100644
--- a/resources.py
+++ b/resources.py
@@ -269,7 +269,9 @@ class CollectResourcesWin(gtk.HBox):
# show as
self.show_as_icon_check.set_active(resource['show_as'] is not None)
self._iconview.set_sensitive(self.show_as_icon_check.get_active())
- self._set_show_as_icon_label(self._get_image_name(resource['show_as']))
+ if resource['show_as'] is not None:
+ self._set_show_as_icon_label(
+ self._get_image_name(resource['show_as']))
self._modified_data = False