97 self.securityDetailsButton.setEnabled(False) |
97 self.securityDetailsButton.setEnabled(False) |
98 else: |
98 else: |
99 self.securityLabel.setStyleSheet(SiteInfoDialog.nokStyle) |
99 self.securityLabel.setStyleSheet(SiteInfoDialog.nokStyle) |
100 self.securityLabel.setText('<b>Connection is not encrypted.</b>') |
100 self.securityLabel.setText('<b>Connection is not encrypted.</b>') |
101 self.securityDetailsButton.setEnabled(False) |
101 self.securityDetailsButton.setEnabled(False) |
|
102 self.tabWidget.setTabEnabled(self.tabWidget.indexOf(self.securityTab), False) |
102 |
103 |
103 # populate Media tab |
104 # populate Media tab |
104 images = frame.findAllElements("img") |
105 images = frame.findAllElements("img") |
105 for element in images: |
106 for element in images: |
106 src = element.attribute("src") |
107 src = element.attribute("src") |
130 @pyqtSlot() |
131 @pyqtSlot() |
131 def on_securityDetailsButton_clicked(self): |
132 def on_securityDetailsButton_clicked(self): |
132 """ |
133 """ |
133 Private slot to show security details. |
134 Private slot to show security details. |
134 """ |
135 """ |
135 self.tabWidget.setCurrentIndex(2) |
136 self.tabWidget.setCurrentIndex(self.tabWidget.indexOf(self.securityTab)) |
136 |
137 |
137 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
138 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
138 def on_imagesTree_currentItemChanged(self, current, previous): |
139 def on_imagesTree_currentItemChanged(self, current, previous): |
139 """ |
140 """ |
140 Private slot to show a preview of the selected image. |
141 Private slot to show a preview of the selected image. |