Skip to content

Commit eb6156b

Browse files
committed
qt: Handle exceptions in BitcoinGUI::addWallet slot
1 parent f7e260a commit eb6156b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/bitcoingui.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ void BitcoinGUI::setWalletController(WalletController* wallet_controller)
654654
m_open_wallet_action->setEnabled(true);
655655
m_open_wallet_action->setMenu(m_open_wallet_menu);
656656

657-
connect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet);
657+
GUIUtil::ExceptionSafeConnect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet);
658658
connect(wallet_controller, &WalletController::walletRemoved, this, &BitcoinGUI::removeWallet);
659659

660660
for (WalletModel* wallet_model : m_wallet_controller->getOpenWallets()) {

0 commit comments

Comments
 (0)