WalletManager: fix error when cache is missing

This commit is contained in:
tobtoht 2021-07-07 04:29:42 +02:00
parent cdab3ffdc4
commit 4b747bf163
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -148,7 +148,7 @@ void WindowManager::onWalletOpened(Wallet *wallet) {
// Don't show incorrect password when we try with empty password for the first time
bool showIncorrectPassword = m_openWalletTriedOnce;
m_openWalletTriedOnce = true;
this->onWalletOpenPasswordRequired(showIncorrectPassword, wallet->cachePath());
this->onWalletOpenPasswordRequired(showIncorrectPassword, wallet->keysPath());
}
else if (errMsg == QString("basic_string::_M_replace_aux") || errMsg == QString("std::bad_alloc")) {
qCritical() << errMsg;