Bug fix: Check for chumList before use. Fixes #4
This commit is contained in:
parent
216b404a18
commit
a43bb7b819
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ class chumListing(QtGui.QTreeWidgetItem):
|
|||
self.status = None
|
||||
self.setToolTip(0, "%s: %s" % (chum.handle, window.chumdb.getNotes(chum.handle)))
|
||||
def setMood(self, mood):
|
||||
if self.mainwindow.chumList.notify:
|
||||
if hasattr(self.mainwindow, "chumList") and self.mainwindow.chumList.notify:
|
||||
#print "%s -> %s" % (self.chum.mood.name(), mood.name())
|
||||
if mood.name() == "offline" and self.chum.mood.name() != "offline":
|
||||
#print "OFFLINE NOTIFY: " + self.handle
|
||||
|
|
Loading…
Reference in a new issue