Skip to content

Commit

Permalink
gui: disable File->CreateWallet during startup
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#17695
Rebased-From: d65fafc
  • Loading branch information
fanquake committed Jan 3, 2020
1 parent b9f1bc0 commit d14ab7c
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 @@ -341,6 +341,7 @@ void BitcoinGUI::createActions()
m_close_wallet_action->setStatusTip(tr("Close wallet"));

m_create_wallet_action = new QAction(tr("Create Wallet..."), this);
m_create_wallet_action->setEnabled(false);
m_create_wallet_action->setStatusTip(tr("Create a new wallet"));

showHelpMessageAction = new QAction(tr("&Command-line options"), this);
Expand Down Expand Up @@ -617,6 +618,7 @@ void BitcoinGUI::setWalletController(WalletController* wallet_controller)

m_wallet_controller = wallet_controller;

m_create_wallet_action->setEnabled(true);
m_open_wallet_action->setEnabled(true);
m_open_wallet_action->setMenu(m_open_wallet_menu);

Expand Down

0 comments on commit d14ab7c

Please sign in to comment.