src/eric7/Preferences/ConfigurationPages/SecurityPage.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
88 """ 88 """
89 Private slot to handle the use of a master password. 89 Private slot to handle the use of a master password.
90 90
91 @param checked flag indicating the state of the check box (boolean) 91 @param checked flag indicating the state of the check box (boolean)
92 """ 92 """
93 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
94
93 if checked: 95 if checked:
94 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
95
96 dlg = MasterPasswordEntryDialog("", self) 96 dlg = MasterPasswordEntryDialog("", self)
97 if dlg.exec() == QDialog.DialogCode.Accepted: 97 if dlg.exec() == QDialog.DialogCode.Accepted:
98 Preferences.setUser("MasterPassword", dlg.getMasterPassword()) 98 Preferences.setUser("MasterPassword", dlg.getMasterPassword())
99 self.masterPasswordButton.setEnabled(True) 99 self.masterPasswordButton.setEnabled(True)
100 self.__newPassword = dlg.getMasterPassword() 100 self.__newPassword = dlg.getMasterPassword()

eric ide

mercurial