SiteInfoDialog: fixed an issue setting the enabled state of the security tab.

Thu, 08 Oct 2020 19:07:33 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 08 Oct 2020 19:07:33 +0200
changeset 7768
6aec9032afad
parent 7767
d0a86562934e
child 7769
c9f64088224b

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(),

eric ide

mercurial