eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

changeset 8151
8c1445825e7b
parent 8143
2c730d5fd177
child 8218
7c09585bd960
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py	Thu Mar 04 17:44:41 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py	Thu Mar 04 17:48:09 2021 +0100
@@ -418,13 +418,15 @@
         
         self.start(self.args)
     
-    @pyqtSlot(str)
-    def on_statusFilterCombo_activated(self, txt):
+    @pyqtSlot(int)
+    def on_statusFilterCombo_activated(self, index):
         """
         Private slot to react to the selection of a status filter.
         
-        @param txt selected status filter (string)
+        @param index index of the selected entry
+        @type int
         """
+        txt = self.statusFilterCombo.itemText(index)
         if txt == "<{0}>".format(self.tr("all")):
             for topIndex in range(self.statusList.topLevelItemCount()):
                 topItem = self.statusList.topLevelItem(topIndex)

eric ide

mercurial