--- a/eric6/Plugins/VcsPlugins/vcsSubversion/SvnOptionsDialog.py Sat Mar 06 10:00:52 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsSubversion/SvnOptionsDialog.py Sun Mar 28 15:00:11 2021 +0200 @@ -65,7 +65,7 @@ dlg = SvnRepoBrowserDialog(self.vcs, mode="select", parent=self) dlg.start( self.protocolCombo.currentText() + self.vcsUrlPicker.text()) - if dlg.exec() == QDialog.Accepted: + if dlg.exec() == QDialog.DialogCode.Accepted: url = dlg.getSelectedUrl() if url: protocol = url.split("://")[0] @@ -74,13 +74,15 @@ self.protocolCombo.findText(protocol + "://")) self.vcsUrlPicker.setText(path) - @pyqtSlot(str) - def on_protocolCombo_activated(self, protocol): + @pyqtSlot(int) + def on_protocolCombo_activated(self, index): """ Private slot to switch the status of the directory selection button. - @param protocol selected protocol (string) + @param index index of the selected entry + @type int """ + protocol = self.protocolCombo.itemText(index) if protocol == "file://": self.networkPath = self.vcsUrlPicker.text() self.vcsUrlPicker.setText(self.localPath) @@ -101,7 +103,8 @@ @param txt current text of the line edit (string) """ enable = "://" not in txt - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(enable) def getData(self): """