Fix a few uses of undefined data on startup and exit

This commit is contained in:
moneromooo.monero
2018-03-03 23:12:19 +00:00
parent 084c1c84f3
commit 22de9db4e1
2 changed files with 10 additions and 8 deletions

View File

@@ -185,8 +185,9 @@ ColumnLayout {
Layout.minimumWidth: 300 * scaleRatio
opacity: remoteNode.checked
id: remoteNodeEdit
daemonAddrText: persistentSettings.remoteNodeAddress.split(":")[0].trim()
daemonPortText: (persistentSettings.remoteNodeAddress.split(":")[1].trim() == "") ? "18081" : persistentSettings.remoteNodeAddress.split(":")[1]
property var rna: persistentSettings.remoteNodeAddress
daemonAddrText: rna.search(":") != -1 ? rna.split(":")[0].trim() : ""
daemonPortText: rna.search(":") != -1 ? (rna.split(":")[1].trim() == "") ? "18081" : persistentSettings.remoteNodeAddress.split(":")[1] : ""
}
}
}