Bug fix: Check group name on rename
This commit is contained in:
parent
e333b774ef
commit
3039e2dc92
2 changed files with 9 additions and 1 deletions
|
@ -27,6 +27,7 @@ CHANGELOG
|
|||
* 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]
|
||||
* Don't allow rename groups with parenthesis - Kiooeht [evacipatedBox]
|
||||
|
||||
|
||||
### 3.41.3
|
||||
|
|
|
@ -790,6 +790,13 @@ class chumArea(RightClickTree):
|
|||
(gname, ok) = QtGui.QInputDialog.getText(self, "Rename Group", "Enter a new name for the group:")
|
||||
if ok:
|
||||
gname = unicode(gname)
|
||||
if re.search("[^A-Za-z0-9_\s]", gname) is not None:
|
||||
msgbox = QtGui.QMessageBox()
|
||||
msgbox.setInformativeText("THIS IS NOT A VALID GROUP NAME")
|
||||
msgbox.setStandardButtons(QtGui.QMessageBox.Ok)
|
||||
ret = msgbox.exec_()
|
||||
self.addgroupdialog = None
|
||||
return
|
||||
currentGroup = self.currentItem()
|
||||
if not currentGroup:
|
||||
return
|
||||
|
@ -1896,7 +1903,7 @@ class PesterWindow(MovingWindow):
|
|||
return
|
||||
if re.search("[^A-Za-z0-9_\s]", group) is not None:
|
||||
errormsg = QtGui.QErrorMessage(self)
|
||||
errormsg.showMessage("THIS IS NOT A VALID CHUMTAG!")
|
||||
errormsg.showMessage("THIS IS NOT A VALID GROUP NAME")
|
||||
self.addchumdialog = None
|
||||
return
|
||||
if newgroup:
|
||||
|
|
Loading…
Reference in a new issue