Fixed two issues in the SSL Info Dialog. 5_2_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 07 Oct 2012 15:21:33 +0200
branch
5_2_x
changeset 2123
7f02c9d4cd3b
parent 2119
5f2f6d0ad1e6
child 2125
091c0c716635

Fixed two issues in the SSL Info Dialog.
(grafted from fce5f83cb9902222b531cdf95273e30448b0d990)

Helpviewer/SiteInfo/SiteInfoDialog.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/SiteInfo/SiteInfoDialog.py	Sun Oct 07 15:03:04 2012 +0200
+++ b/Helpviewer/SiteInfo/SiteInfoDialog.py	Sun Oct 07 15:21:33 2012 +0200
@@ -99,6 +99,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 = frame.findAllElements("img")
@@ -132,7 +133,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