qt: Handle exceptions in BitcoinGUI::addWallet slot

pull/826/head
Hennadii Stepanov 4 years ago
parent f7e260a471
commit eb6156ba1b
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

@ -654,7 +654,7 @@ void BitcoinGUI::setWalletController(WalletController* wallet_controller)
m_open_wallet_action->setEnabled(true); m_open_wallet_action->setEnabled(true);
m_open_wallet_action->setMenu(m_open_wallet_menu); m_open_wallet_action->setMenu(m_open_wallet_menu);
connect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet); GUIUtil::ExceptionSafeConnect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet);
connect(wallet_controller, &WalletController::walletRemoved, this, &BitcoinGUI::removeWallet); connect(wallet_controller, &WalletController::walletRemoved, this, &BitcoinGUI::removeWallet);
for (WalletModel* wallet_model : m_wallet_controller->getOpenWallets()) { for (WalletModel* wallet_model : m_wallet_controller->getOpenWallets()) {

Loading…
Cancel
Save