Skip to content
Snippets Groups Projects
Commit 3b1f2833 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[olivier] clean activity / mood buttons when changing status. Fixes #5104

parent 375b1352
No related branches found
No related tags found
No related merge requests found
......@@ -625,6 +625,8 @@ class ChangeStatusMessageDialog:
# gtk.Tooltips().set_tip(item, pep.ACTIVITIES[category]['category'])
if self.pep_dict['activity_text']:
label.set_text(self.pep_dict['activity_text'])
else:
label.set_text('')
else:
img.set_from_pixbuf(None)
label.set_text('')
......@@ -638,6 +640,8 @@ class ChangeStatusMessageDialog:
self.pep_dict['mood']).get_pixbuf())
if self.pep_dict['mood_text']:
label.set_text(self.pep_dict['mood_text'])
else:
label.set_text('')
else:
img.set_from_pixbuf(None)
label.set_text('')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment