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

changeset 8151
8c1445825e7b
parent 8143
2c730d5fd177
child 8218
7c09585bd960
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListGuardsDialog.py	Thu Mar 04 17:44:41 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListGuardsDialog.py	Thu Mar 04 17:48:09 2021 +0100
@@ -54,15 +54,17 @@
         """
         Public slot to start the list command.
         """
-        self.on_patchSelector_activated("")
+        self.on_patchSelector_activated(0)
     
-    @pyqtSlot(str)
-    def on_patchSelector_activated(self, patch):
+    @pyqtSlot(int)
+    def on_patchSelector_activated(self, index):
         """
         Private slot to get the list of guards for the given patch name.
         
-        @param patch selected patch name (empty for current patch)
+        @param index index of the selected entry
+        @type int
         """
+        patch = self.patchSelector.itemText(index)
         self.guardsList.clear()
         self.patchNameLabel.setText("")
         

eric ide

mercurial