--- a/eric6/Network/IRC/IrcChannelEditDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Network/IRC/IrcChannelEditDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -38,7 +38,8 @@ self.nameEdit.setReadOnly(edit) - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(name != "") + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(name != "") msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) @@ -50,7 +51,8 @@ @param txt text of the edit (string) """ - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(txt != "") + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(txt != "") def getData(self): """