72 Private slot to test the entered service key. |
72 Private slot to test the entered service key. |
73 """ |
73 """ |
74 self.testResultLabel.setHidden(False) |
74 self.testResultLabel.setHidden(False) |
75 self.testResultLabel.setText( |
75 self.testResultLabel.setText( |
76 self.tr("Checking validity of the service key...")) |
76 self.tr("Checking validity of the service key...")) |
77 if self.vtSecureCheckBox.isChecked(): |
77 protocol = "https" if self.vtSecureCheckBox.isChecked() else "http" |
78 protocol = "https" |
|
79 else: |
|
80 protocol = "http" |
|
81 self.__vt.checkServiceKeyValidity( |
78 self.__vt.checkServiceKeyValidity( |
82 self.vtServiceKeyEdit.text(), protocol) |
79 self.vtServiceKeyEdit.text(), protocol) |
83 |
80 |
84 @pyqtSlot(bool, str) |
81 @pyqtSlot(bool, str) |
85 def __checkServiceKeyFinished(self, result, msg): |
82 def __checkServiceKeyFinished(self, result, msg): |