774 @param newname new name of the group (string) |
774 @param newname new name of the group (string) |
775 @param language programming language for the group (string) |
775 @param language programming language for the group (string) |
776 """ |
776 """ |
777 if oldname != newname: |
777 if oldname != newname: |
778 if newname in self.groups: |
778 if newname in self.groups: |
779 QMessageBox.warning(self, |
779 E5MessageBox.warning(self, |
780 self.trUtf8("Edit Template Group"), |
780 self.trUtf8("Edit Template Group"), |
781 self.trUtf8("""<p>A template group with the name""" |
781 self.trUtf8("""<p>A template group with the name""" |
782 """ <b>{0}</b> already exists.</p>""")\ |
782 """ <b>{0}</b> already exists.</p>""")\ |
783 .format(newname)) |
783 .format(newname)) |
784 return |
784 return |