mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-18 16:54:33 +00:00
Ensure ringdb is written after wallet creation
This commit is contained in:
parent
32f66f6622
commit
d52df3b94e
2 changed files with 7 additions and 6 deletions
|
@ -279,7 +279,8 @@ void WindowManager::tryCreateWallet(Seed seed, const QString &path, const QStrin
|
|||
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)
|
||||
|
|
|
@ -1413,18 +1413,18 @@ Wallet::~Wallet()
|
|||
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue