diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-07 23:47:42 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-07 23:47:42 -0700 |
commit | 009400d49ccb54144e1311931a769fcb325b1b0d (patch) | |
tree | 77ef486b001980d218e02b4e25669d00a67f16f4 | |
parent | 13bb3fad73f1933e75ea17e101c5f8a3d2c2f561 (diff) |
mediaplayer: qml: fix clear() being called on wrong object
ListModel object should get the clear() call and not the passed playlist
data in onPlaylistChanged event.
Change-Id: I406d98701bdc725fe90846d238ec90c9f5aa5b20
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r-- | app/MediaPlayer.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index 6f2fa81..6f8d0db 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -130,7 +130,7 @@ ApplicationWindow { target: mediaplayer onPlaylistChanged: { - playlist.clear() + playlist_model.clear(); for (var i = 0; i < playlist.list.length; i++) { var item = playlist.list[i] |