--- a/Preferences/ConfigurationPages/SecurityPage.py Sat Oct 12 17:31:40 2013 +0200 +++ b/Preferences/ConfigurationPages/SecurityPage.py Sat Oct 12 18:25:29 2013 +0200 @@ -25,7 +25,8 @@ """ Constructor - @param configDialog reference to the configuration dialog (ConfigurationDialog) + @param configDialog reference to the configuration dialog + (ConfigurationDialog) """ super().__init__() self.setupUi(self) @@ -61,7 +62,8 @@ Preferences.setHelp("DnsPrefetchEnabled", self.dnsPrefetchCheckBox.isChecked()) - if self.__oldUseMasterPassword != self.masterPasswordCheckBox.isChecked(): + if self.__oldUseMasterPassword != \ + self.masterPasswordCheckBox.isChecked(): self.__configDlg.masterPasswordChanged.emit("", self.__newPassword) @pyqtSlot(bool) @@ -91,12 +93,14 @@ Private slot to change the master password. """ from .MasterPasswordEntryDialog import MasterPasswordEntryDialog - dlg = MasterPasswordEntryDialog(Preferences.getUser("MasterPassword"), self) + dlg = MasterPasswordEntryDialog( + Preferences.getUser("MasterPassword"), self) if dlg.exec_() == QDialog.Accepted: Preferences.setUser("MasterPassword", dlg.getMasterPassword()) - if self.__oldUseMasterPassword != self.masterPasswordCheckBox.isChecked(): + if self.__oldUseMasterPassword != \ + self.masterPasswordCheckBox.isChecked(): # the user is about to change the use of a master password # just save the changed password self.__newPassword = dlg.getMasterPassword()