Commits

Yuya Nishihara  committed 5a7553b

sync: use setUrl() instead of setEditUrl() where appropriate

  • Participants
  • Parent commits 474a942
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/sync.py

         self.cmd = cmd
 
         self.reload()
+        self.curalias = None
         if 'default' in self.paths:
-            self.curalias = 'default'
-            self.setEditUrl(hglib.tounicode(self.paths['default']))
+            self.setUrl('default')
         else:
-            self.curalias = None
             self.setEditUrl('')
 
     def canswitch(self):
             return
         if url.startswith('file:///'):
             url = url[8:]
-        self.setEditUrl(url)
+        self.setUrl(url)
 
     def canExit(self):
         return not self.cmd.core.running()