diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 8525bf3a..409d3d1a 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -650,6 +650,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");