diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2011-11-30 00:57:31 +0100 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2011-11-30 00:57:31 +0100 |
commit | 2774d43cff763cb1e5502c2369a32a049a2e1e0d (patch) | |
tree | 71f874902c08b58cf60254ca65fd27eecf1c4f1b /qml | |
parent | 1de5be2ec9c1022d8449186b60d863e0ad7501fa (diff) |
Update playlist dialog when a playlist is renamed.
Diffstat (limited to 'qml')
-rw-r--r-- | qml/MainPage.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/qml/MainPage.qml b/qml/MainPage.qml index 3c8e8f3..f341ae7 100644 --- a/qml/MainPage.qml +++ b/qml/MainPage.qml @@ -80,7 +80,14 @@ Page { } property variant playlists: spotifySession.user ? spotifySession.user.playlists : null - onPlaylistsChanged: { + Connections { + target: spotifySession.user + onPlaylistsNameChanged: updatePlaylistDialog() + } + + onPlaylistsChanged: updatePlaylistDialog() + + function updatePlaylistDialog() { playlistSelectionDialog.model.clear(); if (playlists === null) |