Commits

Yuya Nishihara committed 3c7d9a7

reporegistry: fix AttributeError on Del key with no selection

  • Participants
  • Parent commits c626ec5
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/reporegistry.py

     def removeSelected(self):
         'remove selected repository'
         s = self.selitem
+        if not s:
+            return
         item = s.internalPointer()
         if 'remove' not in item.menulist():  # check capability
             return