MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / addWallet

Method addWallet

src/qt/bitcoingui.cpp:504–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502
503#ifdef ENABLE_WALLET
504bool BitcoinGUI::addWallet(WalletModel *walletModel)
505{
506 if(!walletFrame)
507 return false;
508 const QString name = walletModel->getWalletName();
509 QString display_name = name.isEmpty() ? "["+tr("default wallet")+"]" : name;
510 setWalletActionsEnabled(true);
511 m_wallet_selector->addItem(display_name, name);
512 if (m_wallet_selector->count() == 2) {
513 m_wallet_selector_label_action->setVisible(true);
514 m_wallet_selector_action->setVisible(true);
515 }
516 rpcConsole->addWallet(walletModel);
517 return walletFrame->addWallet(walletModel);
518}
519
520bool BitcoinGUI::removeWallet(WalletModel* walletModel)
521{

Callers

nothing calls this directly

Calls 2

getWalletNameMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected