Skip to content

Commit

Permalink
gui: Enable open wallet menu on setWalletController
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#16118
Rebased-From: 75485ef
  • Loading branch information
promag authored and Michael Polzer committed Aug 23, 2019
1 parent cceaaeb commit 7ae8c8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void BitcoinGUI::createActions()
openAction->setStatusTip(tr("Open a chaincoin: URI or payment request"));

m_open_wallet_action = new QAction(tr("Open Wallet"), this);
m_open_wallet_action->setMenu(new QMenu(this));
m_open_wallet_action->setEnabled(false);
m_open_wallet_action->setStatusTip(tr("Open a wallet"));

m_close_wallet_action = new QAction(tr("Close Wallet..."), this);
Expand Down Expand Up @@ -693,6 +693,9 @@ void BitcoinGUI::setWalletController(WalletController* wallet_controller)

m_wallet_controller = wallet_controller;

m_open_wallet_action->setEnabled(true);
m_open_wallet_action->setMenu(new QMenu(this));

connect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet);
connect(wallet_controller, &WalletController::walletRemoved, this, &BitcoinGUI::removeWallet);

Expand Down

0 comments on commit 7ae8c8b

Please sign in to comment.