summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-05-07 23:47:42 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-05-07 23:47:42 -0700
commit009400d49ccb54144e1311931a769fcb325b1b0d (patch)
tree77ef486b001980d218e02b4e25669d00a67f16f4
parent13bb3fad73f1933e75ea17e101c5f8a3d2c2f561 (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.qml2
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]