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