diff --git a/frontends/src/quick_frontend/quick_app.py b/frontends/src/quick_frontend/quick_app.py index 337295bb..82c38ef2 100644 --- a/frontends/src/quick_frontend/quick_app.py +++ b/frontends/src/quick_frontend/quick_app.py @@ -280,7 +280,10 @@ class QuickApp(object): @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 @@ class QuickApp(object): 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)