diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-05-29 14:20:59 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-06-13 06:46:19 -0400 |
commit | b2398240ff901715dab39a98b04d4eb9e0a462ae (patch) | |
tree | 1695817aa844eed24f5351d2bfa9fcb195a63a43 /src/qt | |
parent | d1f261150b49a957138ef4920203f91f5a8c01b6 (diff) |
gui: Enable open wallet menu on setWalletController
Github-Pull: #16118
Rebased-From: 75485ef0962a53946f17b761c4445627b07e6eff
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/bitcoingui.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index b5c92e10a2..1444dddeb1 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -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); |