eric6/Plugins/VcsPlugins/vcsPySvn/SvnNewProjectOptionsDialog.py

changeset 8151
8c1445825e7b
parent 8143
2c730d5fd177
child 8218
7c09585bd960
equal deleted inserted replaced
8150:fc1ae39af8c9 8151:8c1445825e7b
108 self.vcsTagLabel.setEnabled(checked) 108 self.vcsTagLabel.setEnabled(checked)
109 self.vcsTagEdit.setEnabled(checked) 109 self.vcsTagEdit.setEnabled(checked)
110 if not checked: 110 if not checked:
111 self.vcsTagEdit.clear() 111 self.vcsTagEdit.clear()
112 112
113 @pyqtSlot(str) 113 @pyqtSlot(int)
114 def on_protocolCombo_activated(self, protocol): 114 def on_protocolCombo_activated(self, index):
115 """ 115 """
116 Private slot to switch the status of the directory selection button. 116 Private slot to switch the status of the directory selection button.
117 117
118 @param protocol name of the selected protocol (string) 118 @param index index of the selected entry
119 @type int
119 """ 120 """
121 protocol = self.protocolCombo.itemText(index)
120 if protocol == "file://": 122 if protocol == "file://":
121 self.networkPath = self.vcsUrlPicker.text() 123 self.networkPath = self.vcsUrlPicker.text()
122 self.vcsUrlPicker.setText(self.localPath) 124 self.vcsUrlPicker.setText(self.localPath)
123 self.vcsUrlLabel.setText(self.tr("Pat&h:")) 125 self.vcsUrlLabel.setText(self.tr("Pat&h:"))
124 self.localProtocol = True 126 self.localProtocol = True

eric ide

mercurial