From 5d3fe93e1fa9926ccb276c1c24c995c89b3a39b8 Mon Sep 17 00:00:00 2001 From: xmrdsc Date: Thu, 2 May 2019 14:57:44 +0200 Subject: [PATCH] Check before disconnecting wallet --- main.qml | 3 +++ 1 file changed, 3 insertions(+) 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