diff --git a/main.qml b/main.qml index 17d027e8..b59d39da 100644 --- a/main.qml +++ b/main.qml @@ -588,6 +588,9 @@ ApplicationWindow { } function disconnectRemoteNode() { + if (typeof currentWallet === "undefined" || currentWallet === null) + return; + console.log("disconnecting remote node"); persistentSettings.useRemoteNode = false; currentDaemonAddress = localDaemonAddress