aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorplowsof <plowsof@protonmail.com>2022-07-09 17:41:06 +0100
committerplowsof <plowsof@protonmail.com>2022-07-09 17:41:06 +0100
commit8199ef004d7597e3106dcc7bb856ed75b5e996e2 (patch)
tree27ace36a4e53e5c3da10bd22f1228f04e1c16d45 /main.qml
parentb26f38d37ed81e84e51199425a633bc517f7bec2 (diff)
downloadmonzero-gui-8199ef004d7597e3106dcc7bb856ed75b5e996e2.tar.gz
monzero-gui-8199ef004d7597e3106dcc7bb856ed75b5e996e2.tar.xz
monzero-gui-8199ef004d7597e3106dcc7bb856ed75b5e996e2.zip
convert nettype to int to return correct rpc port
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index d7577359..ffbe4e54 100644
--- a/main.qml
+++ b/main.qml
@@ -2253,7 +2253,7 @@ ApplicationWindow {
}
function getDefaultDaemonRpcPort(networkType) {
- switch (networkType) {
+ switch (parseInt(networkType)) {
case NetworkType.STAGENET:
return 38081;
case NetworkType.TESTNET: