RemoteNodeList: reconnect after editing remote node

This commit is contained in:
rating89us 2021-12-12 16:32:45 +01:00 committed by GitHub
parent bddb9b0050
commit e85b51e1c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,6 +144,9 @@ ColumnLayout {
tooltipLeft: true tooltipLeft: true
onClicked: remoteNodeDialog.edit(remoteNodesModel.get(index), function (remoteNode) { onClicked: remoteNodeDialog.edit(remoteNodesModel.get(index), function (remoteNode) {
remoteNodesModel.set(index, remoteNode) remoteNodesModel.set(index, remoteNode)
if (index === remoteNodesModel.selected) {
remoteNodesModel.applyRemoteNode(index)
}
}) })
} }