mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-19 10:31:09 +00:00
Store cache on exit
This commit is contained in:
parent
ea49e84215
commit
913ef54c22
1 changed files with 6 additions and 0 deletions
|
@ -643,6 +643,12 @@ Wallet::~Wallet()
|
|||
delete m_history;
|
||||
m_history = NULL;
|
||||
//Monero::WalletManagerFactory::getWalletManager()->closeWallet(m_walletImpl);
|
||||
if(status() == Status_Critical)
|
||||
qDebug("Not storing wallet cache");
|
||||
else if( m_walletImpl->store(""))
|
||||
qDebug("Wallet cache stored successfully");
|
||||
else
|
||||
qDebug("Error storing wallet cache");
|
||||
delete m_walletImpl;
|
||||
m_walletImpl = NULL;
|
||||
qDebug("m_walletImpl deleted");
|
||||
|
|
Loading…
Reference in a new issue