43 self.masterPasswordButton.setEnabled( |
43 self.masterPasswordButton.setEnabled( |
44 Preferences.getUser("UseMasterPassword")) |
44 Preferences.getUser("UseMasterPassword")) |
45 |
45 |
46 self.__newPassword = "" |
46 self.__newPassword = "" |
47 self.__oldUseMasterPassword = Preferences.getUser("UseMasterPassword") |
47 self.__oldUseMasterPassword = Preferences.getUser("UseMasterPassword") |
|
48 |
|
49 self.alwaysRejectCheckBox.setChecked( |
|
50 Preferences.getWebBrowser("AlwaysRejectFaultyCertificates")) |
48 |
51 |
49 def setMode(self, displayMode): |
52 def setMode(self, displayMode): |
50 """ |
53 """ |
51 Public method to perform mode dependent setups. |
54 Public method to perform mode dependent setups. |
52 |
55 |
61 ConfigurationWidget.HelpBrowserMode, |
64 ConfigurationWidget.HelpBrowserMode, |
62 ConfigurationWidget.WebBrowserMode |
65 ConfigurationWidget.WebBrowserMode |
63 ) |
66 ) |
64 |
67 |
65 self.__displayMode = displayMode |
68 self.__displayMode = displayMode |
|
69 |
|
70 self.certificateErrorsGroup.setVisible( |
|
71 displayMode == ConfigurationWidget.WebBrowserMode |
|
72 ) |
66 |
73 |
67 def save(self): |
74 def save(self): |
68 """ |
75 """ |
69 Public slot to save the Help Viewers configuration. |
76 Public slot to save the Help Viewers configuration. |
70 """ |
77 """ |
78 if ( |
85 if ( |
79 self.__oldUseMasterPassword != |
86 self.__oldUseMasterPassword != |
80 self.masterPasswordCheckBox.isChecked() |
87 self.masterPasswordCheckBox.isChecked() |
81 ): |
88 ): |
82 self.__configDlg.masterPasswordChanged.emit("", self.__newPassword) |
89 self.__configDlg.masterPasswordChanged.emit("", self.__newPassword) |
|
90 |
|
91 Preferences.setWebBrowser( |
|
92 "AlwaysRejectFaultyCertificates", |
|
93 self.alwaysRejectCheckBox.isChecked()) |
83 |
94 |
84 @pyqtSlot(bool) |
95 @pyqtSlot(bool) |
85 def on_masterPasswordCheckBox_clicked(self, checked): |
96 def on_masterPasswordCheckBox_clicked(self, checked): |
86 """ |
97 """ |
87 Private slot to handle the use of a master password. |
98 Private slot to handle the use of a master password. |