Yuya Nishihara  committed d1be42d

repofilter: restore index of revset combobox to avoid extra activated signal

If edit text matches combobox item but current index is different, it seems
activated signal emitted on each focus-in/out event. It leads unintended revset
query and causes problem when closing RepoWidget (refs #1267).

  • Participants
  • Parent commits 43fada9
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

         full = self.revsethist + self._permanent_queries
-        self.revsetcombo.lineEdit().setText(query)
+        self.revsetcombo.setCurrentIndex(self.revsetcombo.findText(query))
     def loadSettings(self, s):
         repoid = str(self._repo[0])