From: Mikko Rasa Date: Sat, 17 Oct 2015 10:40:46 +0000 (+0300) Subject: Only push PlaybackPage if the BrowsePage is the current page X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5649d49616296df01f821e03a064c6966561bc99;p=xinema.git Only push PlaybackPage if the BrowsePage is the current page 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). --- diff --git a/remote/qml/pages/BrowsePage.qml b/remote/qml/pages/BrowsePage.qml index a4e1ac2..8a5d254 100644 --- a/remote/qml/pages/BrowsePage.qml +++ b/remote/qml/pages/BrowsePage.qml @@ -104,7 +104,7 @@ Page control: xinemaControl onPlaybackStateChanged: { - if(playbackState==StreamControl.Playing) + if(playbackState==StreamControl.Playing && pageContainer.currentPage==page) { if(pageContainer.busy) pageContainer.completeAnimation();