(Playlist) Prevent us writing the playlist file another time

after we have already saved it once
This commit is contained in:
twinaphex 2017-04-23 12:54:13 +02:00
parent 7e3cce9397
commit e192d4eaa6

View File

@ -86,6 +86,7 @@ void playlist_delete_index(playlist_t *playlist,
(playlist->size - idx) * sizeof(struct playlist_entry));
playlist->size = playlist->size - 1;
playlist->modified = true;
playlist_write_file(playlist);
}
@ -368,6 +369,7 @@ void playlist_write_file(playlist_t *playlist)
playlist->entries[i].db_name ? playlist->entries[i].db_name : ""
);
playlist->modified = false;
fclose(file);
}