eric6/Preferences/ConfigurationPages/SecurityPage.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8205
4a0f1f896341
--- a/eric6/Preferences/ConfigurationPages/SecurityPage.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Preferences/ConfigurationPages/SecurityPage.py	Tue Mar 02 17:17:09 2021 +0100
@@ -100,7 +100,7 @@
         if checked:
             from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
             dlg = MasterPasswordEntryDialog("", self)
-            if dlg.exec() == QDialog.Accepted:
+            if dlg.exec() == QDialog.DialogCode.Accepted:
                 Preferences.setUser(
                     "MasterPassword",
                     dlg.getMasterPassword())
@@ -120,7 +120,7 @@
         from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
         dlg = MasterPasswordEntryDialog(
             Preferences.getUser("MasterPassword"), self)
-        if dlg.exec() == QDialog.Accepted:
+        if dlg.exec() == QDialog.DialogCode.Accepted:
             Preferences.setUser(
                 "MasterPassword",
                 dlg.getMasterPassword())

eric ide

mercurial