libsaria: Set initial matching ids

This should be initialized to the set of all ids to begin with.  That
way everything will match.
This commit is contained in:
Bryan Schumaker 2011-05-22 09:34:30 -04:00
parent cb162bfa9f
commit 39198ff2ce
1 changed files with 2 additions and 0 deletions

View File

@ -41,8 +41,10 @@ def add_tracks(tracks):
add_to_index(id, track.title)
def reindex():
global matching
for src, tracks in library.lib_dict.iteritems():
add_tracks(tracks)
matching = all_ids
def is_visible(id):
return id in matching