Fix a bug where smart playlists wouldn't get removed correctly

This commit is contained in:
David Sansome 2010-11-20 15:47:44 +00:00
parent 353485e34e
commit 759e97c275
1 changed files with 1 additions and 1 deletions

View File

@ -1030,7 +1030,7 @@ void LibraryModel::DeleteGenerator(const QModelIndex& index) {
s.beginWriteArray(kSmartPlaylistsArray, smart_playlist_node_->children.count());
int i = 0;
foreach (LibraryItem* item, smart_playlist_node_->children) {
s.setArrayIndex(i);
s.setArrayIndex(i++);
s.setValue("name", item->display_text);
s.setValue("type", item->key);
s.setValue("data", item->smart_playlist_data);