library: Properly set the track primary_key from file

First this was missing, then I set it to the short path, now it's
correct.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
Anna Schumaker 2014-01-29 21:58:29 -05:00 committed by Anna Schumaker
parent 7a78e649a0
commit e9416e6ace
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ void library :: Track :: read(File &f)
title = f.getline();
filepath = f.getline();
title_lower = filter :: to_lowercase(title);
primary_key = library_db[library_id].root_path + "/" + filepath;
library_db[library_id].size++;
}