]> git.tdb.fi Git - xinema.git/blobdiff - remote/qml/pages/BrowsePage.qml
Go back to ConnectPage if connection to the server is lost
[xinema.git] / remote / qml / pages / BrowsePage.qml
index 2a3a123363f5c8f781bc250fcdfcddb3170110d1..74758a69c74e8e0ca42bb47087aa09c42fbf843a 100644 (file)
@@ -99,6 +99,16 @@ Page
                        browseDirectory.directory = defaultLocation.value;
        }
 
+       Connections
+       {
+               target: xinemaControl
+               onConnectedChanged:
+               {
+                       if(!xinemaControl.connected)
+                               pageStack.replace("ConnectPage.qml");
+               }
+       }
+
        StreamControl
        {
                id: streamControl