aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-23 21:22:10 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-23 21:22:11 +0200
commit7521472325f430995e694df7823f43a383909489 (patch)
tree7587faa3a9a3d484675609225be5da833c107fac
parent73ba192a58082ee2cd631770ef3b7fa235f96394 (diff)
parent7f4fec777742329cc35fadbdd6f6057738c26bbd (diff)
downloadmonzero-gui-7521472325f430995e694df7823f43a383909489.tar.gz
monzero-gui-7521472325f430995e694df7823f43a383909489.tar.xz
monzero-gui-7521472325f430995e694df7823f43a383909489.zip
Merge pull request #806
7f4fec7 use testnet bool from wallet2 (Jaquee)
-rw-r--r--main.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index 195c28f3..cb1be4fe 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)