aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-12-01 23:43:46 -0600
committerluigi1111 <luigi1111w@gmail.com>2022-12-01 23:43:46 -0600
commit58c7c9ab76fcf463a9d1fcc1453d594fe3b2fbc2 (patch)
treee290ea9276c1281bbbed453c9aede4f651f9546e /main.qml
parentb8e6cb221bc10a34415fbd91bb3bc840f7d36444 (diff)
parentc390afd25872fcd8736fec7599ed9144b4214466 (diff)
downloadmonzero-gui-58c7c9ab76fcf463a9d1fcc1453d594fe3b2fbc2.tar.gz
monzero-gui-58c7c9ab76fcf463a9d1fcc1453d594fe3b2fbc2.tar.xz
monzero-gui-58c7c9ab76fcf463a9d1fcc1453d594fe3b2fbc2.zip
Merge pull request #4055
c390afd main: fix a potential warning (selsta)
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index 46462d15..a2e80d59 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){