library: Set primary key in the Library class

To prevent duplicates from being added to the library.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
Anna Schumaker 2014-01-29 20:53:09 -05:00 committed by Anna Schumaker
parent 362acf163b
commit 63df51a847
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ void library :: Library :: read(File &f)
{
f >> enabled;
root_path = f.getline();
primary_key = root_path;
size = 0;
}