]> git.tdb.fi Git - xinema.git/commitdiff
Only push PlaybackPage if the BrowsePage is the current page
authorMikko Rasa <tdb@tdb.fi>
Sat, 17 Oct 2015 10:40:46 +0000 (13:40 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 17 Oct 2015 10:53:33 +0000 (13:53 +0300)
Since BrowsePage now remains on the stack, not having this condition
causes a new PlaybackPage to be pushed every time the stream begins
playing (e.g. after being paused).

remote/qml/pages/BrowsePage.qml

index a4e1ac2ec452a68af3c633f6a6624f558d67b05c..8a5d254b60edb5c8443a2895be3dea8a8ef9a4d5 100644 (file)
@@ -104,7 +104,7 @@ Page
                control: xinemaControl
                onPlaybackStateChanged:
                {
-                       if(playbackState==StreamControl.Playing)
+                       if(playbackState==StreamControl.Playing && pageContainer.currentPage==page)
                        {
                                if(pageContainer.busy)
                                        pageContainer.completeAnimation();