73 self.savePasswordsCheckBox.isChecked()) |
73 self.savePasswordsCheckBox.isChecked()) |
74 Preferences.setUser( |
74 Preferences.setUser( |
75 "UseMasterPassword", |
75 "UseMasterPassword", |
76 self.masterPasswordCheckBox.isChecked()) |
76 self.masterPasswordCheckBox.isChecked()) |
77 |
77 |
78 if self.__oldUseMasterPassword != \ |
78 if ( |
79 self.masterPasswordCheckBox.isChecked(): |
79 self.__oldUseMasterPassword != |
|
80 self.masterPasswordCheckBox.isChecked() |
|
81 ): |
80 self.__configDlg.masterPasswordChanged.emit("", self.__newPassword) |
82 self.__configDlg.masterPasswordChanged.emit("", self.__newPassword) |
81 |
83 |
82 @pyqtSlot(bool) |
84 @pyqtSlot(bool) |
83 def on_masterPasswordCheckBox_clicked(self, checked): |
85 def on_masterPasswordCheckBox_clicked(self, checked): |
84 """ |
86 """ |
112 if dlg.exec_() == QDialog.Accepted: |
114 if dlg.exec_() == QDialog.Accepted: |
113 Preferences.setUser( |
115 Preferences.setUser( |
114 "MasterPassword", |
116 "MasterPassword", |
115 dlg.getMasterPassword()) |
117 dlg.getMasterPassword()) |
116 |
118 |
117 if self.__oldUseMasterPassword != \ |
119 if ( |
118 self.masterPasswordCheckBox.isChecked(): |
120 self.__oldUseMasterPassword != |
|
121 self.masterPasswordCheckBox.isChecked() |
|
122 ): |
119 # the user is about to change the use of a master password |
123 # the user is about to change the use of a master password |
120 # just save the changed password |
124 # just save the changed password |
121 self.__newPassword = dlg.getMasterPassword() |
125 self.__newPassword = dlg.getMasterPassword() |
122 else: |
126 else: |
123 self.__configDlg.masterPasswordChanged.emit( |
127 self.__configDlg.masterPasswordChanged.emit( |