Preferences/ConfigurationPages/SecurityPage.py

changeset 3010
befeff46ec0f
parent 2964
84b65fb9e780
child 3025
67064c71df21
child 3057
10516539f238
diff -r bf5ae5d7477d -r befeff46ec0f Preferences/ConfigurationPages/SecurityPage.py
--- 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()

eric ide

mercurial