Check profiledb for color/mood. Fixes #6
This commit is contained in:
parent
b755b27c5e
commit
311594d356
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue