Commit cc4b17d2 authored by Dan Pascu's avatar Dan Pascu

Accept None and do nothing when storing an image in the icon cache

parent cf0db072
......@@ -118,6 +118,8 @@ class IconCache(object):
self.available_names = deque(sorted(all_names - used_names))
def store(self, filename, pixmap=None):
if filename is None:
return None
if not os.path.isabs(filename):
return filename
if filename.startswith(ApplicationData.directory + os.path.sep):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment