Fixed two issues in the SSL Info Dialog.

Sun, 07 Oct 2012 15:21:33 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 07 Oct 2012 15:21:33 +0200
changeset 2122
fce5f83cb990
parent 2121
e7a697b39bc5
child 2124
909d55803dd6

Fixed two issues in the SSL Info Dialog.

Helpviewer/SiteInfo/SiteInfoDialog.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/SiteInfo/SiteInfoDialog.py	Sun Oct 07 15:00:53 2012 +0200
+++ b/Helpviewer/SiteInfo/SiteInfoDialog.py	Sun Oct 07 15:21:33 2012 +0200
@@ -102,6 +102,7 @@
             self.securityLabel.setStyleSheet(SiteInfoDialog.nokStyle)
             self.securityLabel.setText('<b>Connection is not encrypted.</b>')
             self.securityDetailsButton.setEnabled(False)
+            self.tabWidget.setTabEnabled(self.tabWidget.indexOf(self.securityTab), False)
         
         # populate Media tab
         images = self.__mainFrame.findAllElements("img")
@@ -149,7 +150,7 @@
         """
         Private slot to show security details.
         """
-        self.tabWidget.setCurrentIndex(2)
+        self.tabWidget.setCurrentIndex(self.tabWidget.indexOf(self.securityTab))
     
     @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem)
     def on_imagesTree_currentItemChanged(self, current, previous):

eric ide

mercurial