Commits

Yuya Nishihara  committed c6a7044

workbench: fix unicode error in handling of lastClosedRepoRootList

  • Participants
  • Parent commits 1f96811
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/workbench.py

         if widget.closeRepoWidget():
             w = self.repoTabsWidget.widget(index)
             try:
-                reporoot = w.repo.root
+                reporoot = hglib.tounicode(w.repo.root)
             except:
                 reporoot = ''
             self.repoTabsWidget.removeTab(index)
         if 0 <= index < tw.count():
             w = tw.widget(index)
             try:
-                reporoot = w.repo.root
+                reporoot = hglib.tounicode(w.repo.root)
             except:
                 reporoot = ''
             if w and w.closeRepoWidget():