fix saving _last_SHOW activity / mood when we unset them.

This commit is contained in:
Yann Leboulanger 2009-07-22 08:55:25 +02:00
parent ce71f40f7d
commit b7fa1a152f
1 changed files with 9 additions and 9 deletions

View File

@ -763,8 +763,8 @@ class ChangeStatusMessageDialog:
def on_activity_button_clicked(self, widget):
self.countdown_enabled = False
def on_response(activity, subactivity, text):
self.pep_dict['activity'] = activity
self.pep_dict['subactivity'] = subactivity
self.pep_dict['activity'] = activity or ''
self.pep_dict['subactivity'] = subactivity or ''
self.pep_dict['activity_text'] = text
self.draw_activity()
ChangeActivityDialog(on_response, self.pep_dict['activity'],
@ -773,7 +773,7 @@ class ChangeStatusMessageDialog:
def on_mood_button_clicked(self, widget):
self.countdown_enabled = False
def on_response(mood, text):
self.pep_dict['mood'] = mood
self.pep_dict['mood'] = mood or ''
self.pep_dict['mood_text'] = text
self.draw_mood()
ChangeMoodDialog(on_response, self.pep_dict['mood'],