Commits

Yuya Nishihara committed 9a4f3ae

sync: backout 042539f3ded0 to avoid URL change on reload

#2596 is fixed by bf6e69bfdc6a, but still outgoing preview have a similar
problem. A manual-input URL cannot persist during outgoing-to-push sequence,
because reload() is called several times at setOutgoingNodes, clearRevisionSet,
etc.

So, for now, it's bad idea to restore selection on reload().

Comments (0)

Files changed (1)

tortoisehg/hgqt/sync.py

         sm = self.reltv.selectionModel()
         sm.currentRowChanged.connect(self.pathSelected)
 
-        # restore the current alias and its url
-        if self.curalias in self.paths:
-            self.setUrl(hglib.tounicode(self.curalias))
-
     def currentUrl(self):
         return unicode(self.urlentry.text())
 
         dlg.setWindowModality(Qt.WindowModal)
         if dlg.exec_() == QDialog.Accepted:
             self.curalias = hglib.fromunicode(dlg.aliasentry.text())
+            self.setEditUrl(dlg.urlentry.text())
             self.reload()
 
     def removeurl(self):