Helpviewer/HelpWindow.py

changeset 1127
b1802ebe0066
parent 1112
8a7d1b9d18db
child 1131
7781e396c903
equal deleted inserted replaced
1123:4ed80ed7e433 1127:b1802ebe0066
1918 """ 1918 """
1919 dlg = ConfigurationDialog(self, 'Configuration', True, 1919 dlg = ConfigurationDialog(self, 'Configuration', True,
1920 fromEric=self.fromEric, 1920 fromEric=self.fromEric,
1921 displayMode=ConfigurationDialog.HelpBrowserMode) 1921 displayMode=ConfigurationDialog.HelpBrowserMode)
1922 dlg.preferencesChanged.connect(self.preferencesChanged) 1922 dlg.preferencesChanged.connect(self.preferencesChanged)
1923 dlg.masterPasswordChanged.connect(self.masterPasswordChanged)
1923 dlg.show() 1924 dlg.show()
1924 if self.__lastConfigurationPageName: 1925 if self.__lastConfigurationPageName:
1925 dlg.showConfigurationPageByName(self.__lastConfigurationPageName) 1926 dlg.showConfigurationPageByName(self.__lastConfigurationPageName)
1926 else: 1927 else:
1927 dlg.showConfigurationPageByName("empty") 1928 dlg.showConfigurationPageByName("empty")
1954 self.virustotalScanCurrentAct.setEnabled(False) 1955 self.virustotalScanCurrentAct.setEnabled(False)
1955 else: 1956 else:
1956 self.virustotalSearchEdit.setEnabled(True) 1957 self.virustotalSearchEdit.setEnabled(True)
1957 self.virustotalScanCurrentAct.setEnabled(True) 1958 self.virustotalScanCurrentAct.setEnabled(True)
1958 self.__virusTotalSearchChanged(self.virustotalSearchEdit.text()) 1959 self.__virusTotalSearchChanged(self.virustotalSearchEdit.text())
1960
1961 def masterPasswordChanged(self, oldPassword, newPassword):
1962 """
1963 Public slot to handle the change of the master password.
1964
1965 @param oldPassword current master password (string)
1966 @param newPassword new master password (string)
1967 """
1968 self.passwordManager().masterPasswordChanged(oldPassword, newPassword)
1969 if self.fromEric and isinstance(self.sender(), ConfigurationDialog):
1970 # we were called from our local configuration dialog
1971 Preferences.convertPasswords(oldPassword, newPassword)
1972 Utilities.crypto.changeRememberedMaster(newPassword)
1959 1973
1960 def __showAcceptedLanguages(self): 1974 def __showAcceptedLanguages(self):
1961 """ 1975 """
1962 Private slot to configure the accepted languages for web pages. 1976 Private slot to configure the accepted languages for web pages.
1963 """ 1977 """

eric ide

mercurial