1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Steve Borho  committed 9a53b0a

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

  • Participants
  • Parent commits e9b90c0
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/merge.py

View file
         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):