Helpviewer/HelpWindow.py

changeset 1127
b1802ebe0066
parent 1112
8a7d1b9d18db
child 1131
7781e396c903
--- a/Helpviewer/HelpWindow.py	Thu Jun 16 16:29:27 2011 +0200
+++ b/Helpviewer/HelpWindow.py	Sun Jun 19 15:19:46 2011 +0200
@@ -1920,6 +1920,7 @@
                                   fromEric=self.fromEric,
                                   displayMode=ConfigurationDialog.HelpBrowserMode)
         dlg.preferencesChanged.connect(self.preferencesChanged)
+        dlg.masterPasswordChanged.connect(self.masterPasswordChanged)
         dlg.show()
         if self.__lastConfigurationPageName:
             dlg.showConfigurationPageByName(self.__lastConfigurationPageName)
@@ -1957,6 +1958,19 @@
             self.virustotalScanCurrentAct.setEnabled(True)
         self.__virusTotalSearchChanged(self.virustotalSearchEdit.text())
     
+    def masterPasswordChanged(self, oldPassword, newPassword):
+        """
+        Public slot to handle the change of the master password.
+        
+        @param oldPassword current master password (string)
+        @param newPassword new master password (string)
+        """
+        self.passwordManager().masterPasswordChanged(oldPassword, newPassword)
+        if self.fromEric and isinstance(self.sender(), ConfigurationDialog):
+            # we were called from our local configuration dialog
+            Preferences.convertPasswords(oldPassword, newPassword)
+            Utilities.crypto.changeRememberedMaster(newPassword)
+    
     def __showAcceptedLanguages(self):
         """
         Private slot to configure the accepted languages for web pages.

eric ide

mercurial