Merge lp:~ahayzen/music-app/remix-console-errors-queue-clear into lp:music-app/remix

Proposed by Andrew Hayzen
Status: Merged
Approved by: Victor Thompson
Approved revision: 706
Merged at revision: 708
Proposed branch: lp:~ahayzen/music-app/remix-console-errors-queue-clear
Merge into: lp:music-app/remix
Diff against target: 35 lines (+5/-5)
1 file modified
Player.qml (+5/-5)
To merge this branch: bzr merge lp:~ahayzen/music-app/remix-console-errors-queue-clear
Reviewer Review Type Date Requested Status
Victor Thompson Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+239781@code.launchpad.net

Commit message

* Fix for console errors when clearing the queue

Description of the change

* Fix for console errors when clearing the queue

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
706. By Andrew Hayzen

* Fix for settings source directly

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, I couldn't find any other such instances.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Player.qml'
2--- Player.qml 2014-10-27 13:19:40 +0000
3+++ Player.qml 2014-10-28 01:43:52 +0000
4@@ -62,10 +62,10 @@
5 onCountChanged: {
6 if (trackQueue.model.count === 1) {
7 player.currentIndex = 0;
8- mediaPlayerLoader.item.source = Qt.resolvedUrl(trackQueue.model.get(0).filename)
9+ setSource(Qt.resolvedUrl(trackQueue.model.get(0).filename))
10 } else if (trackQueue.model.count === 0) {
11- player.currentMetaFile = ""
12- mediaPlayerLoader.item.source = ""
13+ player.currentIndex = -1
14+ setSource("")
15 }
16 }
17 }
18@@ -123,7 +123,7 @@
19 }
20 else {
21 currentIndex = newIndex
22- source = Qt.resolvedUrl(trackQueue.model.get(newIndex).filename)
23+ setSource(Qt.resolvedUrl(trackQueue.model.get(newIndex).filename))
24 }
25
26 // Set index into queue
27@@ -196,7 +196,7 @@
28 return
29 }
30
31- if (source === "") {
32+ if (source.toString() === "") {
33 player.currentIndex = -1
34 player.stop()
35 }

Subscribers

People subscribed via source and target branches