Merge pull request #185

708eb43 Fix crash on exit if cancelling open and exiting (moneromooo.monero)
This commit is contained in:
Riccardo Spagni 2016-11-24 12:29:21 +02:00
commit 0d2228553b
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -603,7 +603,10 @@ ApplicationWindow {
walletInitialized = false;
splashCounter = 0;
// we can't close async here. Gui crashes if wallet is open
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
if (currentWallet != undefined) {
walletManager.closeWallet(currentWallet);
currentWallet = undefined
}
}
}