mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
windowmanager: properly exit app on close if wallet failed to open
This commit is contained in:
parent
e350af3492
commit
ec8d3bff57
1 changed files with 3 additions and 0 deletions
|
@ -284,6 +284,7 @@ void WindowManager::onWalletOpened(Wallet *wallet) {
|
||||||
bool showIncorrectPassword = m_openWalletTriedOnce;
|
bool showIncorrectPassword = m_openWalletTriedOnce;
|
||||||
m_openWalletTriedOnce = true;
|
m_openWalletTriedOnce = true;
|
||||||
this->onWalletOpenPasswordRequired(showIncorrectPassword, wallet->keysPath());
|
this->onWalletOpenPasswordRequired(showIncorrectPassword, wallet->keysPath());
|
||||||
|
return; // Do not remove this
|
||||||
}
|
}
|
||||||
else if (errMsg == QString("basic_string::_M_replace_aux") || errMsg == QString("std::bad_alloc") || errMsg == "invalid signature") {
|
else if (errMsg == QString("basic_string::_M_replace_aux") || errMsg == QString("std::bad_alloc") || errMsg == "invalid signature") {
|
||||||
qCritical() << errMsg;
|
qCritical() << errMsg;
|
||||||
|
@ -304,6 +305,8 @@ void WindowManager::onWalletOpened(Wallet *wallet) {
|
||||||
this->handleDeviceError(errMsg, message);
|
this->handleDeviceError(errMsg, message);
|
||||||
this->handleWalletError(message);
|
this->handleWalletError(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_openingWallet = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue