Check profiledb for color/mood. Fixes #6

This commit is contained in:
Kiooeht 2011-09-12 19:08:21 -07:00
parent b755b27c5e
commit 311594d356

View file

@ -458,6 +458,10 @@ class PesterProfileDB(dict):
options['group'] = c['group']
if 'notes' in c:
options['notes'] = c['notes']
if 'color' not in c:
c['color'] = "#000000"
if 'mood' not in c:
c['mood'] = "offline"
u.append((handle, PesterProfile(handle, color=QtGui.QColor(c['color']), mood=Mood(c['mood']), **options)))
converted = dict(u)
self.update(converted)