eric6/Preferences/ConfigurationPages/SecurityPage.py

changeset 7759
51aa6c6b66f7
parent 7628
f904d0eef264
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
99 @param checked flag indicating the state of the check box (boolean) 99 @param checked flag indicating the state of the check box (boolean)
100 """ 100 """
101 if checked: 101 if checked:
102 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog 102 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
103 dlg = MasterPasswordEntryDialog("", self) 103 dlg = MasterPasswordEntryDialog("", self)
104 if dlg.exec_() == QDialog.Accepted: 104 if dlg.exec() == QDialog.Accepted:
105 Preferences.setUser( 105 Preferences.setUser(
106 "MasterPassword", 106 "MasterPassword",
107 dlg.getMasterPassword()) 107 dlg.getMasterPassword())
108 self.masterPasswordButton.setEnabled(True) 108 self.masterPasswordButton.setEnabled(True)
109 self.__newPassword = dlg.getMasterPassword() 109 self.__newPassword = dlg.getMasterPassword()
119 Private slot to change the master password. 119 Private slot to change the master password.
120 """ 120 """
121 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog 121 from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
122 dlg = MasterPasswordEntryDialog( 122 dlg = MasterPasswordEntryDialog(
123 Preferences.getUser("MasterPassword"), self) 123 Preferences.getUser("MasterPassword"), self)
124 if dlg.exec_() == QDialog.Accepted: 124 if dlg.exec() == QDialog.Accepted:
125 Preferences.setUser( 125 Preferences.setUser(
126 "MasterPassword", 126 "MasterPassword",
127 dlg.getMasterPassword()) 127 dlg.getMasterPassword())
128 128
129 if ( 129 if (

eric ide

mercurial