diff options
author | Kimmo Ollila <kimmo.ollila@digia.com> | 2013-06-19 13:02:05 +0300 |
---|---|---|
committer | Lasse Räihä <lasse.raiha@digia.com> | 2013-06-19 13:03:26 +0300 |
commit | c17fe9e0ec0882ac4c4dc1168095f569acab5d09 (patch) | |
tree | 554b6c108fcce8caae17472d2433ace8070653c3 /QtDemo | |
parent | b319f4b1022ae1ceca238e31656405cddb993414 (diff) |
Fixed radio crash on application close
Change-Id: Iaae40f9112e70ac9ac09b7127128560470e5ca91
Reviewed-by: Lasse Räihä <lasse.raiha@digia.com>
Diffstat (limited to 'QtDemo')
-rw-r--r-- | QtDemo/qml/QtDemo/demos/radio/radio.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/QtDemo/qml/QtDemo/demos/radio/radio.qml b/QtDemo/qml/QtDemo/demos/radio/radio.qml index 04f60d0..8615f9b 100644 --- a/QtDemo/qml/QtDemo/demos/radio/radio.qml +++ b/QtDemo/qml/QtDemo/demos/radio/radio.qml @@ -69,6 +69,11 @@ FocusScope { if (volumeButton.playing) playMusic.play() } } + Component.onDestruction: { + volumeButton.playing = false + playMusic.stop() + playMusic.source = "" + } } Rectangle { |