From 33e916a929276548b6357d572d7de5ec9447d5b7 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Tue, 27 Dec 2011 06:11:22 -0800 Subject: [PATCH] Bug fix: Deleting groups when showing online numbers --- pesterchum.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pesterchum.py b/pesterchum.py index 2f3807d..9c0a58d 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -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))