wallet->setCacheAttribute("feather.seed", seed.mnemonic.join(" "));
wallet->setCacheAttribute("feather.seedoffset", seedOffset);
- this->onWalletOpened(wallet);
+ wallet->deleteLater();
+ this->tryOpenWallet(path, password);
}
void WindowManager::tryCreateWalletFromDevice(const QString &path, const QString &password, const QString &deviceName, int restoreHeight)
m_scheduler.shutdownWaitForFinished();
- //Monero::WalletManagerFactory::getWalletManager()->closeWallet(m_walletImpl);
- if(status() == Status_Critical || status() == Status_BadPassword)
+ if (status() == Status_Critical || status() == Status_BadPassword)
qDebug("Not storing wallet cache");
- else if( m_walletImpl->store(""))
+ else if (m_walletImpl->store(""))
qDebug("Wallet cache stored successfully");
else
qDebug("Error storing wallet cache");
+
delete m_walletImpl;
m_walletImpl = nullptr;
delete m_walletListener;
- m_walletListener = NULL;
- qDebug("m_walletImpl deleted");
+ m_walletListener = nullptr;
+ qDebug("~Wallet: Closed");
}
void Wallet::startRefreshThread()