From e0b80292e6c8d6b6461a815a72701bcb4f7ab44b Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Fri, 3 Feb 2012 00:30:48 -0800 Subject: [PATCH] Bug fix: Move hidden chums when deleting group --- CHANGELOG.mkdn | 1 + TODO.mkdn | 1 - pesterchum.py | 6 ++++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.mkdn b/CHANGELOG.mkdn index 03c7d6f..7d170d3 100644 --- a/CHANGELOG.mkdn +++ b/CHANGELOG.mkdn @@ -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 diff --git a/TODO.mkdn b/TODO.mkdn index 3d6fcbe..5b74b07 100644 --- a/TODO.mkdn +++ b/TODO.mkdn @@ -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 ------------ diff --git a/pesterchum.py b/pesterchum.py index aa47a17..84cb076 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -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)