Commits

Yuya Nishihara committed bf9694e

sync: connect configChanged to reload directly

Comments (0)

Files changed (1)

tortoisehg/hgqt/sync.py

             if val:
                 self.opts[opt] = val
 
-        self.repo.configChanged.connect(self.configChanged)
+        self.repo.configChanged.connect(self.reload)
 
         if self.embedded:
             layout.setContentsMargins(2, 2, 2, 2)
             index = 0
         self.targetcombo.setCurrentIndex(index)
 
-    @pyqtSlot()
-    def configChanged(self):
-        'Repository is reporting its config files have changed'
-        self.reload()
-
     def editOptions(self):
         dlg = OptionsDialog(self.opts, self)
         dlg.setWindowFlags(Qt.Sheet)
                     val = hglib.tounicode(val)
                 s.setValue('sync/' + opt, val)
 
+    @pyqtSlot()
     def reload(self):
         # Refresh configured paths
         self.paths = {}