Commits

Wagner Bruna committed 9fc6c5e

branchop: allow closing the default branch

This is often useful to deal with undesired anonymous branches.
A similar change was applied to hgtk on 9e8bdef4c479 .

Comments (0)

Files changed (1)

tortoisehg/hgqt/branchop.py

 
             newbranch.toggled.connect(branchCombo.setEnabled)
             branchCombo.setEnabled(False)
-            if wctx.branch() == 'default':
-                closebranch.setEnabled(False)
             if oldbranchop is None:
                 nochange.setChecked(True)
             elif oldbranchop == False: