Commits

Yuya Nishihara  committed dbfb47e

manifestmodel: suppress extra _buildrootentry on initial setNameFilter('')

  • Participants
  • Parent commits 4230823
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/manifestmodel.py

     @pyqtSlot(unicode)
     def setNameFilter(self, pattern):
         """Filter file name by partial match of glob pattern"""
+        pattern = pattern and unicode(pattern) or None
         if self._namefilter == pattern:
             return
-        self._namefilter = pattern and unicode(pattern) or None
+        self._namefilter = pattern
         self._rebuildrootentry()
 
     @property