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