From a9331a757fd779580ff96764e301a9a5963094bf Mon Sep 17 00:00:00 2001 From: stoffu Date: Sat, 7 Apr 2018 14:10:31 +0900 Subject: [PATCH] Set daemon address to WalletManager (requires #3576) --- main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index b481985c..9e41ecbb 100644 --- a/main.qml +++ b/main.qml @@ -419,7 +419,9 @@ ApplicationWindow { function connectRemoteNode() { console.log("connecting remote node"); persistentSettings.useRemoteNode = true; - currentWallet.initAsync(persistentSettings.remoteNodeAddress); + currentDaemonAddress = persistentSettings.remoteNodeAddress; + currentWallet.initAsync(currentDaemonAddress); + walletManager.setDaemonAddress(currentDaemonAddress); remoteNodeConnected = true; } @@ -428,6 +430,7 @@ ApplicationWindow { persistentSettings.useRemoteNode = false; currentDaemonAddress = localDaemonAddress currentWallet.initAsync(currentDaemonAddress); + walletManager.setDaemonAddress(currentDaemonAddress); remoteNodeConnected = false; }