Merge lp:~ahayzen/music-app/remix-fix-empty-songs into lp:music-app/remix

Proposed by Andrew Hayzen
Status: Merged
Approved by: Victor Thompson
Approved revision: 712
Merged at revision: 711
Proposed branch: lp:~ahayzen/music-app/remix-fix-empty-songs
Merge into: lp:music-app/remix
Diff against target: 37 lines (+3/-2)
3 files modified
MusicStart.qml (+1/-1)
WorkerModelLoader.qml (+1/-1)
worker-library-loader.js (+1/-0)
To merge this branch: bzr merge lp:~ahayzen/music-app/remix-fix-empty-songs
Reviewer Review Type Date Requested Status
Victor Thompson Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+239790@code.launchpad.net

Commit message

* Fix for empty songs in page after selecting album from recent
* Enforce a sync after a clear
* Allow clear to run even if canLoad is false

Description of the change

* Fix for empty songs in page after selecting album from recent
* Enforce a sync after a clear
* Allow clear to run even if canLoad is false

To post a comment you must log in.
712. By Andrew Hayzen

* Enforce a sync after a clear
* Allow clear to run even if canLoad is false

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

LGTM! Thanks for patching this up!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'MusicStart.qml'
2--- MusicStart.qml 2014-10-27 00:08:31 +0000
3+++ MusicStart.qml 2014-10-28 04:05:31 +0000
4@@ -71,7 +71,7 @@
5 var comp = Qt.createComponent("common/SongsPage.qml")
6 var songsPage = comp.createObject(mainPageStack,
7 {
8- "album": model.type !== "playlist" ? title : undefined,
9+ "album": model.type !== "playlist" ? model.data : undefined,
10 "covers": coverSources,
11 "isAlbum": (model.type === "album"),
12 "genre": undefined,
13
14=== modified file 'WorkerModelLoader.qml'
15--- WorkerModelLoader.qml 2014-10-28 03:18:31 +0000
16+++ WorkerModelLoader.qml 2014-10-28 04:05:31 +0000
17@@ -75,7 +75,7 @@
18 }
19
20 function clear() {
21- if (canLoad && list !== null) {
22+ if (list !== null) {
23 sendMessage({'clear': true, 'model': model})
24 }
25 }
26
27=== modified file 'worker-library-loader.js'
28--- worker-library-loader.js 2014-10-27 23:45:25 +0000
29+++ worker-library-loader.js 2014-10-28 04:05:31 +0000
30@@ -21,6 +21,7 @@
31 WorkerScript.onMessage = function(msg) {
32 if (msg.clear === true) {
33 msg.model.clear();
34+ msg.model.sync();
35 WorkerScript.sendMessage({});
36 } else if (msg.sync === true) {
37 msg.model.sync(); // updates the changes to the list

Subscribers

People subscribed via source and target branches