aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardDaemonSettings.qml
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-02-17 14:33:12 +0000
committerxiphon <xiphon@protonmail.com>2019-02-17 14:40:03 +0000
commit3aff7ddcef593df2ac3448164b8a9abf33f8aaf5 (patch)
tree924384d76178310c7f7ce4ec46c9476061317d3b /wizard/WizardDaemonSettings.qml
parent0064e595c3f5fc8cc47564a839cc310182e07fe0 (diff)
downloadmonzero-gui-3aff7ddcef593df2ac3448164b8a9abf33f8aaf5.tar.gz
monzero-gui-3aff7ddcef593df2ac3448164b8a9abf33f8aaf5.tar.xz
monzero-gui-3aff7ddcef593df2ac3448164b8a9abf33f8aaf5.zip
Fix default daemon/remote node RPC port based on the network type
Diffstat (limited to 'wizard/WizardDaemonSettings.qml')
-rw-r--r--wizard/WizardDaemonSettings.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/wizard/WizardDaemonSettings.qml b/wizard/WizardDaemonSettings.qml
index 4303b1a0..a5162e7b 100644
--- a/wizard/WizardDaemonSettings.qml
+++ b/wizard/WizardDaemonSettings.qml
@@ -196,7 +196,7 @@ ColumnLayout {
daemonPortText: {
var node_split = persistentSettings.bootstrapNodeAddress.split(":");
if(node_split.length == 2){
- (node_split[1].trim() == "") ? "18081" : node_split[1];
+ (node_split[1].trim() == "") ? appWindow.getDefaultDaemonRpcPort(persistentSettings.nettype) : node_split[1];
} else {
return ""
}
@@ -228,7 +228,7 @@ ColumnLayout {
id: remoteNodeEdit
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] : ""
+ daemonPortText: rna.search(":") != -1 ? (rna.split(":")[1].trim() == "") ? appWindow.getDefaultDaemonRpcPort(persistentSettings.nettype) : persistentSettings.remoteNodeAddress.split(":")[1] : ""
placeholderFontBold: true
placeholderFontFamily: "Arial"