Bug fix: Check for chumList before use. Fixes #4

This commit is contained in:
Kiooeht 2011-08-23 23:55:22 -07:00
parent 216b404a18
commit a43bb7b819

View file

@ -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