From c390afd25872fcd8736fec7599ed9144b4214466 Mon Sep 17 00:00:00 2001 From: selsta Date: Sat, 29 Oct 2022 04:55:01 +0200 Subject: [PATCH] main: fix a potential warning --- main.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index 4be6be06..72531ab2 100644 --- a/main.qml +++ b/main.qml @@ -694,7 +694,8 @@ ApplicationWindow { // Daemon connected leftPanel.networkStatus.connected = currentWallet ? currentWallet.connected() : Wallet.ConnectionStatus_Disconnected - currentWallet.refreshHeightAsync(); + if (currentWallet) + currentWallet.refreshHeightAsync(); } function startDaemon(flags){