X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=remote%2Fqml%2Fpages%2FBrowsePage.qml;h=74758a69c74e8e0ca42bb47087aa09c42fbf843a;hb=6962c02f4f1b83a1367883fcdee6c54e245283fd;hp=a4e1ac2ec452a68af3c633f6a6624f558d67b05c;hpb=260fa1b83be3f3094ba912ed67e5447d196dd632;p=xinema.git diff --git a/remote/qml/pages/BrowsePage.qml b/remote/qml/pages/BrowsePage.qml index a4e1ac2..74758a6 100644 --- a/remote/qml/pages/BrowsePage.qml +++ b/remote/qml/pages/BrowsePage.qml @@ -2,6 +2,7 @@ import QtQuick 2.0 import Sailfish.Silica 1.0 import org.nemomobile.configuration 1.0 import fi.mikkosoft.xinema 0.1 +import "../components" Page { @@ -98,13 +99,23 @@ Page browseDirectory.directory = defaultLocation.value; } + Connections + { + target: xinemaControl + onConnectedChanged: + { + if(!xinemaControl.connected) + pageStack.replace("ConnectPage.qml"); + } + } + StreamControl { id: streamControl control: xinemaControl onPlaybackStateChanged: { - if(playbackState==StreamControl.Playing) + if(playbackState==StreamControl.Playing && pageContainer.currentPage==page) { if(pageContainer.busy) pageContainer.completeAnimation();