eric7/Plugins/WizardPlugins/SetupWizard/AddProjectUrlDialog.py

branch
eric7
changeset 9202
81388c6065e8
parent 9201
2f1ccadee231
diff -r 2f1ccadee231 -r 81388c6065e8 eric7/Plugins/WizardPlugins/SetupWizard/AddProjectUrlDialog.py
--- a/eric7/Plugins/WizardPlugins/SetupWizard/AddProjectUrlDialog.py	Sat Jul 02 18:53:56 2022 +0200
+++ b/eric7/Plugins/WizardPlugins/SetupWizard/AddProjectUrlDialog.py	Sun Jul 03 13:52:59 2022 +0200
@@ -63,7 +63,9 @@
         Private slot to update the enabled state of the OK button.
         """
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
-            bool(self.nameComboBox.currentText()) and bool(self.urlEdit.text())
+            bool(self.nameComboBox.currentText()) and
+            bool(self.urlEdit.text()) and
+            self.urlEdit.text().startswith(("http://", "https://"))
         )
     
     def getUrl(self):

eric ide

mercurial