libsaria: Remove songs from the library playlist when they are reaped

It's useful to keep the UI in sync with the backend...

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-09-09 12:58:41 -04:00
parent 4d764eeb00
commit 83e3763083
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ void ValidateTask::run_task()
track = &it->get_value();
if (!libsaria::exists(track->get_filepath())) {
println("Reaping: " + track->get_filepath());
lib_playlist.remove_track(&it->get_value());
it = path->tracks.erase(it);
path->data_state = DIRTY;
}