Commits

Yuya Nishihara committed 84ef52f

pbranch: simply connect change notification signals to refresh()

Comments (0)

Files changed (1)

tortoisehg/hgqt/pbranch.py

         self.show_internal_branches = False
 
         repoagent.configChanged.connect(self.configChanged)
-        repoagent.repositoryChanged.connect(self.repositoryChanged)
-        repoagent.workingBranchChanged.connect(self.workingBranchChanged)
+        repoagent.repositoryChanged.connect(self.refresh)
+        repoagent.workingBranchChanged.connect(self.refresh)
 
         # Build child widgets
 
         self.repo.thginvalidate()
         self.refresh()
 
+    @pyqtSlot()
     def refresh(self):
         """
         Refresh the list of patches.
     def configChanged(self):
         pass
 
-    @pyqtSlot()
-    def repositoryChanged(self):
-        self.refresh()
-
-    @pyqtSlot()
-    def workingBranchChanged(self):
-        self.refresh()
-
     def pmerge_clicked(self):
         self.pmerge()