don't require python2.5

This commit is contained in:
Yann Leboulanger 2008-07-29 06:59:14 +00:00
parent 4e89f57706
commit e7b7e01b54
1 changed files with 4 additions and 1 deletions

View File

@ -500,7 +500,10 @@ class ChangeMoodDialog:
self.mood_buttons[con.mood['mood']]. \ self.mood_buttons[con.mood['mood']]. \
set_active(True) set_active(True)
self.entry.set_sensitive(True if self.mood else False) if self.mood:
self.entry.set_sensitive(True)
else:
self.entry.set_sensitive(False)
if 'text' in con.mood: if 'text' in con.mood:
self.entry.set_text(con.mood['text']) self.entry.set_text(con.mood['text'])