diff --git a/src/smartplaylists/smartplaylistsmodel.cpp b/src/smartplaylists/smartplaylistsmodel.cpp index 22be666a7..bf00cbee7 100644 --- a/src/smartplaylists/smartplaylistsmodel.cpp +++ b/src/smartplaylists/smartplaylistsmodel.cpp @@ -205,6 +205,7 @@ void SmartPlaylistsModel::UpdateGenerator(const QModelIndex &idx, PlaylistGenera s.beginWriteArray(backend_->songs_table(), count); SaveGenerator(&s, idx.row(), gen); + s.endArray(); s.endGroup(); // Update the text of the item