aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo.monero <moneromooo.monero@users.noreply.github.com>2016-11-18 21:39:06 +0000
committermoneromooo.monero <moneromooo.monero@users.noreply.github.com>2016-11-18 21:39:06 +0000
commit708eb43c3e80dbebaf5f9c60fd8200b44d01ce3a (patch)
tree11289b998f82591591ffa1b486d69a34fbea666d
parentc83336cc4714215725cba957d8ea164a57c33987 (diff)
downloadmonzero-gui-708eb43c3e80dbebaf5f9c60fd8200b44d01ce3a.tar.gz
monzero-gui-708eb43c3e80dbebaf5f9c60fd8200b44d01ce3a.tar.xz
monzero-gui-708eb43c3e80dbebaf5f9c60fd8200b44d01ce3a.zip
Fix crash on exit if cancelling open and exiting
-rw-r--r--main.qml10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.qml b/main.qml
index c09f0c3c..e4d4daa0 100644
--- a/main.qml
+++ b/main.qml
@@ -603,7 +603,10 @@ ApplicationWindow {
walletInitialized = false;
splashCounter = 0;
// we can't close async here. Gui crashes if wallet is open
- walletManager.closeWallet(currentWallet);
+ if (currentWallet != undefined) {
+ walletManager.closeWallet(currentWallet);
+ currentWallet = undefined
+ }
wizard.restart();
rootItem.state = "wizard"
@@ -1026,6 +1029,9 @@ ApplicationWindow {
}
onClosing: {
// Close and save to disk on app close
- walletManager.closeWallet(currentWallet);
+ if (currentWallet != undefined) {
+ walletManager.closeWallet(currentWallet);
+ currentWallet = undefined
+ }
}
}