Skip to content

Commit

Permalink
gui: disable File->CreateWallet during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
fanquake committed Dec 7, 2019
1 parent 5622d8f commit d65fafc
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 @@ -618,6 +619,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 d65fafc

Please sign in to comment.