63 """ |
63 """ |
64 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog |
64 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog |
65 dlg = SvnRepoBrowserDialog(self.vcs, mode="select", parent=self) |
65 dlg = SvnRepoBrowserDialog(self.vcs, mode="select", parent=self) |
66 dlg.start( |
66 dlg.start( |
67 self.protocolCombo.currentText() + self.vcsUrlPicker.text()) |
67 self.protocolCombo.currentText() + self.vcsUrlPicker.text()) |
68 if dlg.exec() == QDialog.Accepted: |
68 if dlg.exec() == QDialog.DialogCode.Accepted: |
69 url = dlg.getSelectedUrl() |
69 url = dlg.getSelectedUrl() |
70 if url: |
70 if url: |
71 protocol = url.split("://")[0] |
71 protocol = url.split("://")[0] |
72 path = url.split("://")[1] |
72 path = url.split("://")[1] |
73 self.protocolCombo.setCurrentIndex( |
73 self.protocolCombo.setCurrentIndex( |
99 Private slot to handle changes of the URL. |
99 Private slot to handle changes of the URL. |
100 |
100 |
101 @param txt current text of the line edit (string) |
101 @param txt current text of the line edit (string) |
102 """ |
102 """ |
103 enable = "://" not in txt |
103 enable = "://" not in txt |
104 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
104 self.buttonBox.button( |
|
105 QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
105 |
106 |
106 def getData(self): |
107 def getData(self): |
107 """ |
108 """ |
108 Public slot to retrieve the data entered into the dialog. |
109 Public slot to retrieve the data entered into the dialog. |
109 |
110 |