--- a/Plugins/VcsPlugins/vcsGit/GitNewProjectOptionsDialog.py Wed Feb 06 19:21:41 2019 +0100 +++ b/Plugins/VcsPlugins/vcsGit/GitNewProjectOptionsDialog.py Fri Feb 08 17:38:00 2019 +0100 @@ -118,19 +118,22 @@ @type str """ enable = False + vcsUrlEnable = False if txt: url = QUrl.fromUserInput(txt) if url.isValid(): if url.scheme() in ConfigGitSchemes: enable = True + vcsUrlEnable = url.scheme() == "file" elif ':' in txt: # assume scp like repository URL enable = True + else: + vcsUrlEnable = True self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) - - self.vcsUrlButton.setEnabled(url.scheme() == "file" or len(txt) == 0) + self.vcsUrlButton.setEnabled(vcsUrlEnable) @pyqtSlot() def on_vcsUrlClearHistoryButton_clicked(self): @@ -152,10 +155,8 @@ """ self.__saveHistory() - url = QUrl.fromUserInput( - self.vcsUrlCombo.currentText().replace("\\", "/")) vcsdatadict = { - "url": url.toString(QUrl.None_), + "url": self.vcsUrlCombo.currentText().replace("\\", "/"), } return (self.vcsProjectDirEdit.text(), vcsdatadict)