]> git.tdb.fi Git - xinema.git/commitdiff
Go back to ConnectPage if connection to the server is lost
authorMikko Rasa <tdb@tdb.fi>
Sun, 18 Oct 2015 13:18:43 +0000 (16:18 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 18 Oct 2015 13:18:43 +0000 (16:18 +0300)
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