diff -r 27f636beebad -r 2c730d5fd177 eric6/Preferences/ConfigurationPages/SecurityPage.py --- 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())