diff options
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index e3845ef83..0b8602334 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -206,6 +206,11 @@ void PlayListModel::insert(int index, const QList<PlayListTrack *> &tracks) emit listChanged(flags); } +void PlayListModel::insert(int index, const QByteArray &json) +{ + insert(index, PlayListParser::deserialize(json)); +} + void PlayListModel::insert(PlayListItem *before, const QList<PlayListTrack *> &tracks) { if(before) |
