Commits

Yuya Nishihara committed c7c5673

repofilter: allow to instantiate without parent for ease of testing

Comments (0)

Files changed (1)

tortoisehg/hgqt/repofilter.py

 
     _allBranchesLabel = u'\u2605 ' + _('Show all') + u' \u2605'
 
-    def __init__(self, repo, parent):
+    def __init__(self, repo, parent=None):
         super(RepoFilterBar, self).__init__(parent)
         self.layout().setContentsMargins(0, 0, 0, 0)
         self.setIconSize(QSize(16,16))