diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-12-10 11:03:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 11:03:37 +0100 |
| commit | 008a38aae2b043d92dea72f1daab804b1eb70373 (patch) | |
| tree | a1d47dc51847fdb44b2aeac3bbf83d6e6a1b37d5 /main.qml | |
| parent | bddb9b0050ee086da5c7ee7fdb3627e0dff9f179 (diff) | |
| download | monzero-gui-008a38aae2b043d92dea72f1daab804b1eb70373.tar.gz monzero-gui-008a38aae2b043d92dea72f1daab804b1eb70373.tar.xz monzero-gui-008a38aae2b043d92dea72f1daab804b1eb70373.zip | |
main: verify if currentWallet is loaded before calling it
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -730,14 +730,18 @@ ApplicationWindow { function onDaemonStarted(){ console.log("daemon started"); daemonStartStopInProgress = 0; - currentWallet.connected(true); - // resume refresh - currentWallet.startRefresh(); + if (currentWallet) { + currentWallet.connected(true); + // resume refresh + currentWallet.startRefresh(); + } // resume simplemode connection timer appWindow.disconnectedEpoch = Utils.epoch(); } function onDaemonStopped(){ - currentWallet.connected(true); + if (currentWallet) { + currentWallet.connected(true); + } } function onDaemonStartFailure(error) { |
