Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-05-19 09:19:56 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-05-19 09:19:56 (GMT)
commitabec4df66ec2433249185ce8a046e33a60c20acb (patch)
tree4c97606365e5f72b315a78b7cf61b09f31d06722 /sugar
parent3ac4cb5432c30bc2744c4139dad825d0a3671792 (diff)
Don't try to display an icon without file name.
Diffstat (limited to 'sugar')
-rw-r--r--sugar/graphics/canvasicon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/canvasicon.py b/sugar/graphics/canvasicon.py
index 14f8351..ec141d0 100644
--- a/sugar/graphics/canvasicon.py
+++ b/sugar/graphics/canvasicon.py
@@ -123,7 +123,7 @@ class _IconCache:
del self._icons[evict_key]
def get_handle(self, name, fill_color, stroke_color):
- if name == None:
+ if not name:
return None
if name[0:6] == "theme:":