Commits

Steve Borho committed 380215d

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

Comments (0)

Files changed (1)

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()