aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index cb2c7acb..fa339eb9 100644
--- a/main.qml
+++ b/main.qml
@@ -587,6 +587,9 @@ ApplicationWindow {
}
function disconnectRemoteNode() {
+ if (typeof currentWallet === "undefined" || currentWallet === null)
+ return;
+
console.log("disconnecting remote node");
persistentSettings.useRemoteNode = false;
currentDaemonAddress = localDaemonAddress