eric6/Preferences/ConfigurationPages/SecurityPage.py

changeset 7759
51aa6c6b66f7
parent 7628
f904d0eef264
child 7780
41420f82c0ac
--- a/eric6/Preferences/ConfigurationPages/SecurityPage.py	Mon Oct 05 19:51:55 2020 +0200
+++ b/eric6/Preferences/ConfigurationPages/SecurityPage.py	Tue Oct 06 17:52:44 2020 +0200
@@ -101,7 +101,7 @@
         if checked:
             from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
             dlg = MasterPasswordEntryDialog("", self)
-            if dlg.exec_() == QDialog.Accepted:
+            if dlg.exec() == QDialog.Accepted:
                 Preferences.setUser(
                     "MasterPassword",
                     dlg.getMasterPassword())
@@ -121,7 +121,7 @@
         from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
         dlg = MasterPasswordEntryDialog(
             Preferences.getUser("MasterPassword"), self)
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             Preferences.setUser(
                 "MasterPassword",
                 dlg.getMasterPassword())

eric ide

mercurial