eric6/Network/IRC/IrcChannelEditDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- 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):
         """

eric ide

mercurial