From: Mikko Rasa Date: Sun, 18 Oct 2015 13:18:43 +0000 (+0300) Subject: Go back to ConnectPage if connection to the server is lost X-Git-Url: http://git.tdb.fi/?p=xinema.git;a=commitdiff_plain;h=6962c02f4f1b83a1367883fcdee6c54e245283fd Go back to ConnectPage if connection to the server is lost --- diff --git a/remote/qml/pages/BrowsePage.qml b/remote/qml/pages/BrowsePage.qml index 2a3a123..74758a6 100644 --- a/remote/qml/pages/BrowsePage.qml +++ b/remote/qml/pages/BrowsePage.qml @@ -99,6 +99,16 @@ Page browseDirectory.directory = defaultLocation.value; } + Connections + { + target: xinemaControl + onConnectedChanged: + { + if(!xinemaControl.connected) + pageStack.replace("ConnectPage.qml"); + } + } + StreamControl { id: streamControl