# HG changeset patch # User Goffi # Date 1472401485 -7200 # Node ID b67aece4a667da8d691cf006225c9ce10f7aa08e # Parent aff318d4a78678b52105e4e7288893892a13aa38 quick frontend (app): avatar filename is not requested anymore if value is empty diff -r aff318d4a786 -r b67aece4a667 frontends/src/quick_frontend/quick_app.py --- a/frontends/src/quick_frontend/quick_app.py Sun Aug 28 18:23:55 2016 +0200 +++ b/frontends/src/quick_frontend/quick_app.py Sun Aug 28 18:24:45 2016 +0200 @@ -280,7 +280,10 @@ @property def visible_widgets(self): - """widgets currently visible (must be implemented by frontend)""" + """widgets currently visible (must be implemented by frontend) + + @return (iter[QuickWidget]): iterable on visible widgets + """ raise NotImplementedError def registerSignal(self, function_name, handler=None, iface="core", with_profile=True): @@ -779,7 +782,7 @@ self.contact_lists[profile].setCache(entity, 'nick', value) self.callListeners('nick', entity, value, profile=profile) elif key == "avatar": - if entity in self.contact_lists[profile]: + if value and entity in self.contact_lists[profile]: def gotFilename(filename): self.contact_lists[profile].setCache(entity, 'avatar', filename) self.callListeners('avatar', entity, filename, profile=profile)