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 ( |