7025: issue with python3 and unicode string
svn: r22986
This commit is contained in:
parent
7eb11077c8
commit
6f7cdb8fd2
@ -460,9 +460,9 @@ class TreeBaseModel(GObject.GObject, Gtk.TreeModel):
|
|||||||
if search[1]:
|
if search[1]:
|
||||||
# we have search[1] = (index, text_unicode, inversion)
|
# we have search[1] = (index, text_unicode, inversion)
|
||||||
col, text, inv = search[1]
|
col, text, inv = search[1]
|
||||||
func = lambda x: self._get_value(x, col, secondary=False) or u""
|
func = lambda x: self._get_value(x, col, secondary=False) or ""
|
||||||
if self.has_secondary:
|
if self.has_secondary:
|
||||||
func2 = lambda x: self._get_value(x, col, secondary=True) or u""
|
func2 = lambda x: self._get_value(x, col, secondary=True) or ""
|
||||||
if search[2]:
|
if search[2]:
|
||||||
self.search = ExactSearchFilter(func, text, inv)
|
self.search = ExactSearchFilter(func, text, inv)
|
||||||
if self.has_secondary:
|
if self.has_secondary:
|
||||||
|
Loading…
Reference in New Issue
Block a user