eric6/Preferences/ConfigurationPages/SecurityPage.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8205
4a0f1f896341
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
98 @param checked flag indicating the state of the check box (boolean) 98 @param checked flag indicating the state of the check box (boolean)
99 """ 99 """
100 if checked: 100 if checked:
101 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog 101 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
102 dlg = MasterPasswordEntryDialog("", self) 102 dlg = MasterPasswordEntryDialog("", self)
103 if dlg.exec() == QDialog.Accepted: 103 if dlg.exec() == QDialog.DialogCode.Accepted:
104 Preferences.setUser( 104 Preferences.setUser(
105 "MasterPassword", 105 "MasterPassword",
106 dlg.getMasterPassword()) 106 dlg.getMasterPassword())
107 self.masterPasswordButton.setEnabled(True) 107 self.masterPasswordButton.setEnabled(True)
108 self.__newPassword = dlg.getMasterPassword() 108 self.__newPassword = dlg.getMasterPassword()
118 Private slot to change the master password. 118 Private slot to change the master password.
119 """ 119 """
120 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog 120 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
121 dlg = MasterPasswordEntryDialog( 121 dlg = MasterPasswordEntryDialog(
122 Preferences.getUser("MasterPassword"), self) 122 Preferences.getUser("MasterPassword"), self)
123 if dlg.exec() == QDialog.Accepted: 123 if dlg.exec() == QDialog.DialogCode.Accepted:
124 Preferences.setUser( 124 Preferences.setUser(
125 "MasterPassword", 125 "MasterPassword",
126 dlg.getMasterPassword()) 126 dlg.getMasterPassword())
127 127
128 if ( 128 if (

eric ide

mercurial