gui: Enable open wallet menu on setWalletController
This commit is contained in:
parent
76e2cded47
commit
75485ef096
1 changed files with 4 additions and 1 deletions
|
@ -335,7 +335,7 @@ void BitcoinGUI::createActions()
|
|||
openAction->setStatusTip(tr("Open a bitcoin: 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);
|
||||
|
@ -633,6 +633,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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue