diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-19 09:19:56 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-19 09:19:56 (GMT) |
commit | abec4df66ec2433249185ce8a046e33a60c20acb (patch) | |
tree | 4c97606365e5f72b315a78b7cf61b09f31d06722 /sugar | |
parent | 3ac4cb5432c30bc2744c4139dad825d0a3671792 (diff) |
Don't try to display an icon without file name.
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/graphics/canvasicon.py | 2 |
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:": |