eric6/Plugins/VcsPlugins/vcsMercurial/HgPhaseDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8151
8c1445825e7b
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgPhaseDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgPhaseDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -32,13 +32,14 @@
         self.phaseCombo.addItem(self.tr("Draft"), "d")
         self.phaseCombo.addItem(self.tr("Secret"), "s")
         
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(False)
     
     def __updateOk(self):
         """
         Private slot to update the state of the OK button.
         """
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(
+        self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
             self.revisionsEdit.toPlainText().strip() != "" and
             self.phaseCombo.currentText().strip() != "")
     

eric ide

mercurial