eric7/Plugins/WizardPlugins/SetupWizard/AddProjectUrlDialog.py

branch
eric7
changeset 9202
81388c6065e8
parent 9201
2f1ccadee231
equal deleted inserted replaced
9201:2f1ccadee231 9202:81388c6065e8
61 def __updateOK(self): 61 def __updateOK(self):
62 """ 62 """
63 Private slot to update the enabled state of the OK button. 63 Private slot to update the enabled state of the OK button.
64 """ 64 """
65 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( 65 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
66 bool(self.nameComboBox.currentText()) and bool(self.urlEdit.text()) 66 bool(self.nameComboBox.currentText()) and
67 bool(self.urlEdit.text()) and
68 self.urlEdit.text().startswith(("http://", "https://"))
67 ) 69 )
68 70
69 def getUrl(self): 71 def getUrl(self):
70 """ 72 """
71 Public method to get the data for the project URL. 73 Public method to get the data for the project URL.

eric ide

mercurial