Bug fix: Move hidden chums when deleting group

This commit is contained in:
Kiooeht 2012-02-03 00:30:48 -08:00
parent 8b9bc4199b
commit e0b80292e6
3 changed files with 5 additions and 3 deletions

View file

@ -25,6 +25,7 @@ CHANGELOG
* Delete groups when using online numbers - Kiooeht [evacipatedBox]
* Add chums when using manual sorting - Kiooeht [evacipatedBox]
* Memo case insensitive for userlist and modes - Kiooeht [evacipatedBox]
* Move hidden chums when deleting group - Kiooeht [evacipatedBox]
### 3.41.3

View file

@ -37,7 +37,6 @@ Bugs
* Kill Zalgo
* Random invisible, tiny links to last link at end of every message
* Clicking link to invite-only memo crashes
* Deleting group doesn't move hidden chums to default group
Windows Bugs
------------

View file

@ -823,13 +823,15 @@ class chumArea(RightClickTree):
gTemp = self.mainwindow.config.getGroups()
self.groups = [g[0] for g in gTemp]
self.openGroups = [g[1] for g in gTemp]
for c in self.chums:
if c.group == text:
c.group = "Chums"
self.mainwindow.chumdb.setGroup(c.handle, "Chums")
for i in range(self.topLevelItemCount()):
if self.topLevelItem(i).text(0) == currentGroup.text(0):
break
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")
self.takeItem(chumLabel)
self.addItem(chumLabel)
self.takeTopLevelItem(i)