eric6/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
diff -r 27f636beebad -r 2c730d5fd177 eric6/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py
--- a/eric6/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -34,7 +34,8 @@
                 self.currentPasswordEdit.setPlaceholderText(
                     self.tr("(not defined yet)"))
         
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(False)
     
     def __updateUI(self):
         """
@@ -66,7 +67,8 @@
                 error = error or self.tr(
                     "Old and new password must not be the same.")
         
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(enable)
         self.errorLabel.setText(error)
     
     @pyqtSlot(str)

eric ide

mercurial