90 self.encodingLabel.setText(encoding) |
90 self.encodingLabel.setText(encoding) |
91 |
91 |
92 # populate the Security info and the Security tab |
92 # populate the Security info and the Security tab |
93 if sslInfo and \ |
93 if sslInfo and \ |
94 ((qVersion() >= "5.0.0" and not sslInfo[0].isBlacklisted()) or |
94 ((qVersion() >= "5.0.0" and not sslInfo[0].isBlacklisted()) or |
95 (qVersion() < "5.0.0" and sslInfo[0].isValid())): |
95 (qVersion() < "5.0.0" and sslInfo[0].isValid())): |
96 self.securityLabel.setStyleSheet(SiteInfoDialog.okStyle) |
96 self.securityLabel.setStyleSheet(SiteInfoDialog.okStyle) |
97 self.securityLabel.setText('<b>Connection is encrypted.</b>') |
97 self.securityLabel.setText('<b>Connection is encrypted.</b>') |
98 if SSL: |
98 if SSL: |
99 self.sslWidget.showCertificateChain(sslInfo) |
99 self.sslWidget.showCertificateChain(sslInfo) |
100 self.securityDetailsButton.setEnabled(True) |
100 self.securityDetailsButton.setEnabled(True) |
270 E5MessageBox.critical( |
270 E5MessageBox.critical( |
271 self, |
271 self, |
272 self.trUtf8("Save Image"), |
272 self.trUtf8("Save Image"), |
273 self.trUtf8( |
273 self.trUtf8( |
274 """<p>Cannot write to file <b>{0}</b>.</p>""") |
274 """<p>Cannot write to file <b>{0}</b>.</p>""") |
275 .format(filename)) |
275 .format(filename)) |
276 return |
276 return |
277 f.write(cacheData.readAll()) |
277 f.write(cacheData.readAll()) |
278 f.close() |
278 f.close() |
279 |
279 |
280 @pyqtSlot(QListWidgetItem, QListWidgetItem) |
280 @pyqtSlot(QListWidgetItem, QListWidgetItem) |