aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxmrdsc <xmrdsc@protonmail.com>2019-05-02 14:57:44 +0200
committerxmrdsc <xmrdsc@protonmail.com>2019-05-02 16:27:35 +0200
commit5d3fe93e1fa9926ccb276c1c24c995c89b3a39b8 (patch)
tree2dd6bbc4bdafb30a24b9be9bbe2aea3d7c020d89
parent97cd215491a44c753ee1450712b3b8d93efdcc37 (diff)
downloadmonzero-gui-5d3fe93e1fa9926ccb276c1c24c995c89b3a39b8.tar.gz
monzero-gui-5d3fe93e1fa9926ccb276c1c24c995c89b3a39b8.tar.xz
monzero-gui-5d3fe93e1fa9926ccb276c1c24c995c89b3a39b8.zip
Check before disconnecting wallet
-rw-r--r--main.qml3
1 files changed, 3 insertions, 0 deletions
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