Bug fix: Don't delete a random chum when blocking someone not on your list

This commit is contained in:
Kiooeht 2011-06-26 23:45:38 -07:00
parent ca81a33e82
commit fd108112ab
2 changed files with 2 additions and 0 deletions

View file

@ -68,6 +68,7 @@ CHANGELOG
* Chat input box right-click menus - Kiooeht [evacipatedBox] * Chat input box right-click menus - Kiooeht [evacipatedBox]
* Don't overflow random colours into colourless messages - Kiooeht [evacipatedBox] * Don't overflow random colours into colourless messages - Kiooeht [evacipatedBox]
* Only open links on left click - Kiooeht [evacipatedBox] * Only open links on left click - Kiooeht [evacipatedBox]
* Don't delete random chum when blocking someone not on chumroll - Kiooeht [evacipatedBox]
### 3.14.1 ### 3.14.1
* Pesterchum 3.14 - illuminatedwax [ghostDunk] * Pesterchum 3.14 - illuminatedwax [ghostDunk]

View file

@ -1110,6 +1110,7 @@ class chumArea(RightClickTree):
def removeChum(self, handle = None): def removeChum(self, handle = None):
if handle: if handle:
clistings = self.getChums(handle) clistings = self.getChums(handle)
if len(clistings) <= 0: return
for c in clistings: for c in clistings:
self.setCurrentItem(c) self.setCurrentItem(c)
if not self.currentItem(): if not self.currentItem():