eric6/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py

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

eric ide

mercurial