Bug fix: Deleting groups when showing online numbers

This commit is contained in:
Kiooeht 2011-12-27 06:11:22 -08:00
parent 97e01395fb
commit 33e916a929

View file

@ -525,7 +525,8 @@ class chumArea(RightClickTree):
text = unicode(self.topLevelItem(i).text(0))
if text.rfind(" (") != -1:
text = text[0:text.rfind(" (")]
self.topLevelItem(i).setText(0, "%s (%i/%i)" % (text, online[text], totals[text]))
if text in online:
self.topLevelItem(i).setText(0, "%s (%i/%i)" % (text, online[text], totals[text]))
def hideOnlineNumbers(self):
for i in range(self.topLevelItemCount()):
text = unicode(self.topLevelItem(i).text(0))