eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListGuardsDialog.py

changeset 8151
8c1445825e7b
parent 8143
2c730d5fd177
child 8218
7c09585bd960
equal deleted inserted replaced
8150:fc1ae39af8c9 8151:8c1445825e7b
52 52
53 def start(self): 53 def start(self):
54 """ 54 """
55 Public slot to start the list command. 55 Public slot to start the list command.
56 """ 56 """
57 self.on_patchSelector_activated("") 57 self.on_patchSelector_activated(0)
58 58
59 @pyqtSlot(str) 59 @pyqtSlot(int)
60 def on_patchSelector_activated(self, patch): 60 def on_patchSelector_activated(self, index):
61 """ 61 """
62 Private slot to get the list of guards for the given patch name. 62 Private slot to get the list of guards for the given patch name.
63 63
64 @param patch selected patch name (empty for current patch) 64 @param index index of the selected entry
65 @type int
65 """ 66 """
67 patch = self.patchSelector.itemText(index)
66 self.guardsList.clear() 68 self.guardsList.clear()
67 self.patchNameLabel.setText("") 69 self.patchNameLabel.setText("")
68 70
69 args = self.vcs.initCommand("qguard") 71 args = self.vcs.initCommand("qguard")
70 if patch: 72 if patch:

eric ide

mercurial