Commits

Steve Borho committed 9a53b0a

merge: declare thgrepo signal handlers as slots, to avoid manual disconnect

Comments (0)

Files changed (1)

tortoisehg/hgqt/merge.py

         repo.configChanged.connect(self.configChanged)
         self.repo = repo
 
+    @pyqtSlot()
     def repositoryChanged(self):
         self.currentPage().repositoryChanged()
 
+    @pyqtSlot()
     def configChanged(self):
         self.currentPage().configChanged()
 
         if self.currentPage().canExit():
             super(MergeDialog, self).reject()
 
-    def done(self, ret):
-        self.repo.repositoryChanged.disconnect(self.repositoryChanged)
-        self.repo.configChanged.disconnect(self.configChanged)
-        super(MergeDialog, self).done(ret)
-
 
 class BasePage(QWizardPage):
     def __init__(self, repo, parent):