From 7f4fec777742329cc35fadbdd6f6057738c26bbd Mon Sep 17 00:00:00 2001 From: Jaquee Date: Mon, 31 Jul 2017 15:11:01 +0200 Subject: [PATCH] use testnet bool from wallet2 --- main.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.qml b/main.qml index cd962ca8..f9f63d52 100644 --- a/main.qml +++ b/main.qml @@ -251,6 +251,12 @@ ApplicationWindow { viewOnly = currentWallet.viewOnly; + // New wallets saves the testnet flag in keys file. + if(persistentSettings.testnet != currentWallet.testnet) { + console.log("Using testnet flag from keys file") + persistentSettings.testnet = currentWallet.testnet; + } + // connect handlers currentWallet.refreshed.connect(onWalletRefresh) currentWallet.updated.connect(onWalletUpdate)