quick frontend (app): avatar filename is not requested anymore if value is empty
This commit is contained in:
parent
ddcb938332
commit
fb827ad023
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue