Thu, 08 Oct 2020 19:07:33 +0200
SiteInfoDialog: fixed an issue setting the enabled state of the security tab.
eric6/WebBrowser/SiteInfo/SiteInfoDialog.py | file | annotate | diff | comparison | revisions |
--- a/eric6/WebBrowser/SiteInfo/SiteInfoDialog.py Thu Oct 08 17:24:54 2020 +0200 +++ b/eric6/WebBrowser/SiteInfo/SiteInfoDialog.py Thu Oct 08 19:07:33 2020 +0200 @@ -118,8 +118,8 @@ if sslInfo: if SSL: self.sslWidget.showCertificateChain(sslInfo) - self.tabWidget.setTabEnabled(2, SSL) - self.securityDetailsButton.setEnabled(SSL) + self.tabWidget.setTabEnabled(2, SSL and bool(sslInfo)) + self.securityDetailsButton.setEnabled(SSL and bool(sslInfo)) # populate Meta tags browser.page().runJavaScript(Scripts.getAllMetaAttributes(),