aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-01-01 12:48:17 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-01-01 12:48:17 -0500
commit56df20ba278341575998d133144c7df37c394747 (patch)
treecdb7afa4882ffb40575dcc1cbe607f0c73c3450c
parent41b827b65d1e291ac44c188b89df053fd25eecdc (diff)
parent008a38aae2b043d92dea72f1daab804b1eb70373 (diff)
downloadmonzero-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.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/main.qml b/main.qml
index af28f2c1..f856539a 100644
--- a/main.qml
+++ b/main.qml
@@ -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) {