diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2022-01-01 12:48:17 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2022-01-01 12:48:17 -0500 |
| commit | 56df20ba278341575998d133144c7df37c394747 (patch) | |
| tree | cdb7afa4882ffb40575dcc1cbe607f0c73c3450c | |
| parent | 41b827b65d1e291ac44c188b89df053fd25eecdc (diff) | |
| parent | 008a38aae2b043d92dea72f1daab804b1eb70373 (diff) | |
| download | monzero-gui-56df20ba278341575998d133144c7df37c394747.tar.gz monzero-gui-56df20ba278341575998d133144c7df37c394747.tar.xz monzero-gui-56df20ba278341575998d133144c7df37c394747.zip | |
Merge pull request #3788
008a38a main: verify if currentWallet is loaded before calling it (rating89us)
| -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) { |
