1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 0595743

filelistmodel: fix exception when filtering non-ascii filename

  • Participants
  • Parent commits 110f053
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/filelistmodel.py

View file
  • Ignore whitespace
         oldindexes = [(self.indexFromFile(r['path']), r['path'])
                       for r in self._files]
         self._files = [r for r in self._unfilteredfiles
-            if unicode(match) in r['path']]
+            if hglib.fromunicode(match) in r['path']]
         for oi, filename in oldindexes:
             self.changePersistentIndex(oi, self.indexFromFile(filename))
         self.layoutChanged.emit()