--- a/Plugins/VcsPlugins/vcsPySvn/SvnOptionsDialog.py Sun Mar 03 12:18:34 2013 +0100 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnOptionsDialog.py Sun Mar 03 12:36:51 2013 +0100 @@ -10,7 +10,7 @@ import os from PyQt4.QtCore import QDir, pyqtSlot -from PyQt4.QtGui import QDialog +from PyQt4.QtGui import QDialog, QDialogButtonBox from E5Gui.E5Completers import E5DirCompleter from E5Gui import E5FileDialog @@ -96,6 +96,16 @@ self.vcsUrlEdit.setText(self.networkPath) self.vcsUrlLabel.setText(self.trUtf8("&URL:")) self.localProtocol = False + + @pyqtSlot(str) + def on_vcsUrlEdit_textChanged(self, txt): + """ + Private slot to handle changes of the URL. + + @param txt current text of the line edit (string) + """ + enable = "://" not in txt + self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) def getData(self): """