Skip to content

Commit

Permalink
gui: fix wallet list hover crash on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Oct 6, 2023
1 parent 1472df6 commit 030cbec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ void BitcoinGUI::createActions()
connect(usedReceivingAddressesAction, &QAction::triggered, walletFrame, &WalletFrame::usedReceivingAddresses);
connect(openAction, &QAction::triggered, this, &BitcoinGUI::openClicked);
connect(m_open_wallet_menu, &QMenu::aboutToShow, [this] {
if (m_node.shutdownRequested()) return; // nothing to do, node is shutting down.

m_open_wallet_menu->clear();
for (const std::pair<const std::string, bool>& i : m_wallet_controller->listWalletDir()) {
const std::string& path = i.first;
Expand Down

0 comments on commit 030cbec

Please sign in to comment.