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 |