Commits

Yuya Nishihara committed 4d1feae

repofilter: restore previously selected branch (closes #1009, #1927)

Comments (0)

Files changed (1)

tortoisehg/hgqt/repofilter.py

         self.revsetcombo.addItems(full)
         self.revsetcombo.setCurrentIndex(-1)
 
+        self._branchReloading = True
+        self.setBranch(s.value('revset/' + repoid + '/branch').toString())
+        self._branchReloading = False
+
         # Show the filter bar if necessary
         if s.value('revset/' + repoid + '/showrepofilterbar').toBool():
             self.show()
         s.setValue('revset/' + repoid + '/queries', self.revsethist)
         s.setValue('revset/' + repoid + '/filter', self.filtercb.isChecked())
         s.setValue('revset/' + repoid + '/showrepofilterbar', not self.isHidden())
+        s.setValue('revset/' + repoid + '/branch', self.branch())
 
     def _initbranchfilter(self):
         self._branchLabel = QToolButton(