Skip to content

Commit 030cbec

Browse files
committed
gui: fix wallet list hover crash on shutdown
1 parent 1472df6 commit 030cbec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/bitcoingui.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ void BitcoinGUI::createActions()
396396
connect(usedReceivingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedReceivingAddresses);
397397
connect(openAction, &QAction::triggered, this, &BitcoinGUI::openClicked);
398398
connect(m_open_wallet_menu, &QMenu::aboutToShow, [this] {
399+
if (m_node.shutdownRequested()) return; // nothing to do, node is shutting down.
400+
399401
m_open_wallet_menu->clear();
400402
for (const std::pair<const std::string, bool>& i : m_wallet_controller->listWalletDir()) {
401403
const std::string& path = i.first;

0 commit comments

Comments
 (0)