Bug fix: Add chum dialog reopens after adding existing chum. Fixes #9

This commit is contained in:
Kiooeht 2011-12-07 14:56:44 -08:00
parent b4518a225c
commit f6b45fb32f
2 changed files with 2 additions and 0 deletions

View file

@ -17,6 +17,7 @@ CHANGELOG
* Makefile for Linux installing - Kiooeht [evacipatedBox] * Makefile for Linux installing - Kiooeht [evacipatedBox]
* Bug fixes * Bug fixes
* Don't require pygame (it's kind of optional, you just don't get sound) - Kiooeht [evacipatedBox] * Don't require pygame (it's kind of optional, you just don't get sound) - Kiooeht [evacipatedBox]
* Allow add chum dialog to opne after adding an existing chum - Kiooeht [evacipatedBox]
### 3.41.3 ### 3.41.3
* Add group option when adding chum - ghostDunk * Add group option when adding chum - ghostDunk

View file

@ -1871,6 +1871,7 @@ class PesterWindow(MovingWindow):
if ok: if ok:
handle = unicode(handle) handle = unicode(handle)
if handle in [h.handle for h in self.chumList.chums]: if handle in [h.handle for h in self.chumList.chums]:
self.addchumdialog = None
return return
if not (PesterProfile.checkLength(handle) and if not (PesterProfile.checkLength(handle) and
PesterProfile.checkValid(handle)[0]): PesterProfile.checkValid(handle)[0]):