eric6/Plugins/VcsPlugins/vcsSubversion/SvnOptionsDialog.py

changeset 8151
8c1445825e7b
parent 8143
2c730d5fd177
child 8218
7c09585bd960
equal deleted inserted replaced
8150:fc1ae39af8c9 8151:8c1445825e7b
72 path = url.split("://")[1] 72 path = url.split("://")[1]
73 self.protocolCombo.setCurrentIndex( 73 self.protocolCombo.setCurrentIndex(
74 self.protocolCombo.findText(protocol + "://")) 74 self.protocolCombo.findText(protocol + "://"))
75 self.vcsUrlPicker.setText(path) 75 self.vcsUrlPicker.setText(path)
76 76
77 @pyqtSlot(str) 77 @pyqtSlot(int)
78 def on_protocolCombo_activated(self, protocol): 78 def on_protocolCombo_activated(self, index):
79 """ 79 """
80 Private slot to switch the status of the directory selection button. 80 Private slot to switch the status of the directory selection button.
81 81
82 @param protocol selected protocol (string) 82 @param index index of the selected entry
83 @type int
83 """ 84 """
85 protocol = self.protocolCombo.itemText(index)
84 if protocol == "file://": 86 if protocol == "file://":
85 self.networkPath = self.vcsUrlPicker.text() 87 self.networkPath = self.vcsUrlPicker.text()
86 self.vcsUrlPicker.setText(self.localPath) 88 self.vcsUrlPicker.setText(self.localPath)
87 self.vcsUrlLabel.setText(self.tr("Pat&h:")) 89 self.vcsUrlLabel.setText(self.tr("Pat&h:"))
88 self.localProtocol = True 90 self.localProtocol = True

eric ide

mercurial