Commits

Yuya Nishihara committed 3ae2be4

qqueue: fix handling of non-ascii name in queue list widget

  • Participants
  • Parent commits 62bde9c
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/qqueue.py

         self.updateUI()
 
     def showQueues(self, output):
-        queues = output.rstrip('\n').split('\n')
+        queues = hglib.tounicode(output).rstrip('\n').split('\n')
         self.ql.clear()
         self.pl.clear()
         row_activeq = 0
                 self.itemfont = item.font()
                 self.itemfontbold = self.itemfont
                 self.itemfontbold.setBold(True)
-            if q == self.repo.thgactivemqname:
+            if q == hglib.tounicode(self.repo.thgactivemqname):
                 row_activeq = i
                 item.setFont(self.itemfontbold)
         self.ql.setCurrentRow(row_activeq)