Bug fix: Show online numbers correctly when hiding offline chums

This commit is contained in:
Kiooeht 2011-05-09 06:24:13 -07:00
parent 3774a80632
commit d73ef0cab7

View file

@ -886,6 +886,8 @@ class chumArea(RightClickTree):
break break
if not self.mainwindow.config.showEmptyGroups(): if not self.mainwindow.config.showEmptyGroups():
self.hideEmptyGroups() self.hideEmptyGroups()
if self.mainwindow.config.showOnlineNumbers():
self.showOnlineNumbers()
return r return r
def updateMood(self, handle, mood): def updateMood(self, handle, mood):
hideoff = self.mainwindow.config.hideOfflineChums() hideoff = self.mainwindow.config.hideOfflineChums()
@ -902,6 +904,8 @@ class chumArea(RightClickTree):
elif mood.name() == "offline" and \ elif mood.name() == "offline" and \
len(chums) > 0: len(chums) > 0:
for c in chums: for c in chums:
if (hasattr(c, 'mood')):
c.setMood(mood)
self.takeItem(c) self.takeItem(c)
chums = [] chums = []
for c in chums: for c in chums: