fixed invalid group name causing a crash (oops)

This commit is contained in:
Dpeta 2021-11-29 16:33:46 +01:00
parent 84ae01dddf
commit 627a5a6391

View file

@ -932,7 +932,7 @@ class chumArea(RightClickTree):
gname = str(gname)
if re.search("[^A-Za-z0-9_\s]", gname) is not None:
msgbox = QtWidgets.QMessageBox()
msgbox.setStyleSheet("QMessageBox{" + self.theme["main/defaultwindow/style"] + "}")
msgbox.setStyleSheet("QMessageBox{" + self.mainwindow.theme["main/defaultwindow/style"] + "}")
msgbox.setInformativeText("THIS IS NOT A VALID GROUP NAME")
msgbox.setStandardButtons(QtWidgets.QMessageBox.Ok)
ret = msgbox.exec_()