Fix some small bugs I didn't catch before pushing.

This commit is contained in:
Kiooeht 2011-03-29 00:53:21 -07:00
parent 7d46901a66
commit c466ecf5ac

View file

@ -820,7 +820,7 @@ class chumArea(RightClickTree):
for i in range(self.topLevelItemCount()):
if self.topLevelItem(i).text(0) == currentGroup.text(0):
break
while self.topLevelItem(i).child(0):
while self.topLevelItem(i) and self.topLevelItem(i).child(0):
chumLabel = self.topLevelItem(i).child(0)
chumLabel.chum.group = "Chums"
self.mainwindow.chumdb.setGroup(chumLabel.chum.handle, "Chums")
@ -2031,8 +2031,8 @@ class PesterWindow(MovingWindow):
secondssetting = self.optionmenu.secondscheck.isChecked()
self.config.set("showSeconds", secondssetting)
# groups
groupssetting = self.optionmenu.groupscheck.isChecked()
self.config.set("useGroups", groupssetting)
#groupssetting = self.optionmenu.groupscheck.isChecked()
#self.config.set("useGroups", groupssetting)
emptygroupssetting = self.optionmenu.showemptycheck.isChecked()
curemptygroup = self.config.showEmptyGroups()
if curemptygroup and not emptygroupssetting: