Commits

Steve Borho  committed 380215d

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

  • Participants
  • Parent commits e7f9633
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/resolve.py

         repo.configChanged.connect(self.configChanged)
         repo.repositoryChanged.connect(self.repositoryChanged)
 
-    def done(self, ret):
-        self.repo.configChanged.disconnect(self.configChanged)
-        self.repo.repositoryChanged.disconnect(self.repositoryChanged)
-        super(ResolveDialog, self).done(ret)
-
+    @pyqtSlot()
     def repositoryChanged(self):
         self.refresh()
 
             if dlg:
                 dlg.exec_()
 
+    @pyqtSlot()
     def configChanged(self):
         'repository has detected a change to config files'
         self.tcombo.reset()