quick frontend (app): avatar filename is not requested anymore if value is empty

This commit is contained in:
Goffi 2016-08-28 18:24:45 +02:00
commit fb827ad023

View file

@ -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)