9065 : Interactivesearch gives "TypeError: unorderable types: str() < NoneType()"

This commit is contained in:
SNoiraud 2015-11-25 14:52:45 +01:00
parent 388aef3a92
commit 092b26356c

View File

@ -507,7 +507,7 @@ class InteractiveSearchBox():
# TODO: explicitely announce the data->sortkey func in models # TODO: explicitely announce the data->sortkey func in models
# sort_key = model.sort_func(text) # sort_key = model.sort_func(text)
sort_key = glocale.sort_key(text.lower()) sort_key = glocale.sort_key(text.lower())
srtkey_hndl = (sort_key, None) srtkey_hndl = (sort_key, "")
lo_bound = 0 # model.get_path(cur_iter) lo_bound = 0 # model.get_path(cur_iter)
found_index = bisect.bisect_left(index2hndl, srtkey_hndl, lo=lo_bound) found_index = bisect.bisect_left(index2hndl, srtkey_hndl, lo=lo_bound)
# if insert position is at tail, no match # if insert position is at tail, no match