Yuya Nishihara  committed d6eca4d

workbench: fix unicode error while loading the last session

  • Participants
  • Parent commits 5edf7b1
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

         # Reload the all the repos that were open on the last session
         # This may be a lengthy operation, which happens before the Workbench GUI is open
         # We use a progress dialog to let the user know that the workbench is being loaded
-        openrepos = hglib.fromunicode(s.value(wb + 'openrepos').toString()).split(',')
-        for n, path in enumerate(openrepos):
+        openrepos = unicode(s.value(wb + 'openrepos').toString()).split(',')
+        for n, upath in enumerate(openrepos):
             self.progress(_('Reopening tabs'), n,
-                          _('Reopening repository %s') % path, '',
+                          _('Reopening repository %s') % upath, '',
-            self._openRepo(path, False)
+            self._openRepo(hglib.fromunicode(upath), False)
         self.progress(_('Reopening tabs'), len(openrepos),
                       _('All repositories open'), '', len(openrepos))