Merge lp:~rpadovani/falldown/fix-audio-issues-switching-apps into lp:falldown

Proposed by Riccardo Padovani
Status: Merged
Merged at revision: 72
Proposed branch: lp:~rpadovani/falldown/fix-audio-issues-switching-apps
Merge into: lp:falldown
Diff against target: 21 lines (+11/-0)
1 file modified
falldown/main.qml (+11/-0)
To merge this branch: bzr merge lp:~rpadovani/falldown/fix-audio-issues-switching-apps
Reviewer Review Type Date Requested Status
Riccardo Padovani Pending
Review via email: mp+270636@code.launchpad.net

Commit message

Fix audio issue when switching an app

Description of the change

Fix audio issue when switching an app - Fix #1494143

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'falldown/main.qml'
2--- falldown/main.qml 2015-09-09 19:14:57 +0000
3+++ falldown/main.qml 2015-09-10 08:33:07 +0000
4@@ -86,6 +86,17 @@
5 }
6 }
7
8+ Connections {
9+ target: Qt.application
10+ onActiveChanged: {
11+ if (Qt.application.active && !settings.mute) {
12+ soundtrack.play();
13+ } else {
14+ soundtrack.stop();
15+ }
16+ }
17+ }
18+
19 MainScene {
20 id: mainScene
21 anchors.fill: parent

Subscribers

People subscribed via source and target branches

to all changes: