100 self.securityDetailsButton.setEnabled(False) |
100 self.securityDetailsButton.setEnabled(False) |
101 else: |
101 else: |
102 self.securityLabel.setStyleSheet(SiteInfoDialog.nokStyle) |
102 self.securityLabel.setStyleSheet(SiteInfoDialog.nokStyle) |
103 self.securityLabel.setText('<b>Connection is not encrypted.</b>') |
103 self.securityLabel.setText('<b>Connection is not encrypted.</b>') |
104 self.securityDetailsButton.setEnabled(False) |
104 self.securityDetailsButton.setEnabled(False) |
|
105 self.tabWidget.setTabEnabled(self.tabWidget.indexOf(self.securityTab), False) |
105 |
106 |
106 # populate Media tab |
107 # populate Media tab |
107 images = self.__mainFrame.findAllElements("img") |
108 images = self.__mainFrame.findAllElements("img") |
108 for element in images: |
109 for element in images: |
109 src = element.attribute("src") |
110 src = element.attribute("src") |
147 @pyqtSlot() |
148 @pyqtSlot() |
148 def on_securityDetailsButton_clicked(self): |
149 def on_securityDetailsButton_clicked(self): |
149 """ |
150 """ |
150 Private slot to show security details. |
151 Private slot to show security details. |
151 """ |
152 """ |
152 self.tabWidget.setCurrentIndex(2) |
153 self.tabWidget.setCurrentIndex(self.tabWidget.indexOf(self.securityTab)) |
153 |
154 |
154 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
155 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
155 def on_imagesTree_currentItemChanged(self, current, previous): |
156 def on_imagesTree_currentItemChanged(self, current, previous): |
156 """ |
157 """ |
157 Private slot to show a preview of the selected image. |
158 Private slot to show a preview of the selected image. |