fix order of connection so that the connect page doesn't remain stale on the stack
This commit is contained in:
parent
0249833848
commit
2b5af4f2f8
@ -25,11 +25,11 @@ Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function connectToHost(url) {
|
function connectToHost(url) {
|
||||||
Engine.connection.connect(url)
|
|
||||||
var page = pageStack.push(Qt.resolvedUrl("ConnectingPage.qml"))
|
var page = pageStack.push(Qt.resolvedUrl("ConnectingPage.qml"))
|
||||||
page.cancel.connect(function() {
|
page.cancel.connect(function() {
|
||||||
Engine.connection.disconnect()
|
Engine.connection.disconnect()
|
||||||
})
|
})
|
||||||
|
Engine.connection.connect(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
NymeaDiscovery {
|
NymeaDiscovery {
|
||||||
|
|||||||
Reference in New Issue
Block a user