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:
parent
362acf163b
commit
63df51a847
|
@ -152,6 +152,7 @@ void library :: Library :: read(File &f)
|
|||
{
|
||||
f >> enabled;
|
||||
root_path = f.getline();
|
||||
primary_key = root_path;
|
||||
size = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue