eric6/Plugins/VcsPlugins/vcsGit/GitStatusDialog.py

changeset 8151
8c1445825e7b
parent 8143
2c730d5fd177
child 8218
7c09585bd960
equal deleted inserted replaced
8150:fc1ae39af8c9 8151:8c1445825e7b
587 else: 587 else:
588 self.__selectedName = "" 588 self.__selectedName = ""
589 589
590 self.start(self.args) 590 self.start(self.args)
591 591
592 @pyqtSlot(str) 592 @pyqtSlot(int)
593 def on_statusFilterCombo_activated(self, txt): 593 def on_statusFilterCombo_activated(self, index):
594 """ 594 """
595 Private slot to react to the selection of a status filter. 595 Private slot to react to the selection of a status filter.
596 596
597 @param txt selected status filter (string) 597 @param index index of the selected entry
598 """ 598 @type int
599 """
600 txt = self.statusFilterCombo.itemText(index)
599 if txt == "<{0}>".format(self.tr("all")): 601 if txt == "<{0}>".format(self.tr("all")):
600 for topIndex in range(self.statusList.topLevelItemCount()): 602 for topIndex in range(self.statusList.topLevelItemCount()):
601 topItem = self.statusList.topLevelItem(topIndex) 603 topItem = self.statusList.topLevelItem(topIndex)
602 topItem.setHidden(False) 604 topItem.setHidden(False)
603 else: 605 else:

eric ide

mercurial