diff --git a/nymea-app/ui/connection/ConnectPage.qml b/nymea-app/ui/connection/ConnectPage.qml index 68163e79..9d72a3ab 100644 --- a/nymea-app/ui/connection/ConnectPage.qml +++ b/nymea-app/ui/connection/ConnectPage.qml @@ -25,11 +25,11 @@ Page { } function connectToHost(url) { - Engine.connection.connect(url) var page = pageStack.push(Qt.resolvedUrl("ConnectingPage.qml")) page.cancel.connect(function() { Engine.connection.disconnect() }) + Engine.connection.connect(url) } NymeaDiscovery {