Commits

Yuya Nishihara committed dfa8de2

sync: reload the list of paths explicitly on edit or remove (fixes #2473)

The original implementation depends on configChanged signal, which may be
omitted in some cases.

See also a32bf09ece7f.

Comments (0)

Files changed (1)

tortoisehg/hgqt/sync.py

         if dlg.exec_() == QDialog.Accepted:
             self.curalias = hglib.fromunicode(dlg.aliasentry.text())
             self.setUrl(hglib.fromunicode(dlg.urlentry.text()))
+            self.reload()
 
     def removeurl(self):
         if qtlib.QuestionMsgBox(_('Confirm path delete'),
             qtlib.WarningMsgBox(_('Unable to write configuration file'),
                                 hglib.tounicode(str(e)), parent=self)
         self.repo.decrementBusyCount()
+        self.reload()
 
 
 class PostPullDialog(QDialog):