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

Method removeWallet

src/qt/bitcoingui.cpp:520–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518}
519
520bool BitcoinGUI::removeWallet(WalletModel* walletModel)
521{
522 if (!walletFrame) return false;
523 QString name = walletModel->getWalletName();
524 int index = m_wallet_selector->findData(name);
525 m_wallet_selector->removeItem(index);
526 if (m_wallet_selector->count() == 0) {
527 setWalletActionsEnabled(false);
528 } else if (m_wallet_selector->count() == 1) {
529 m_wallet_selector_label_action->setVisible(false);
530 m_wallet_selector_action->setVisible(false);
531 }
532 rpcConsole->removeWallet(walletModel);
533 return walletFrame->removeWallet(name);
534}
535
536bool BitcoinGUI::setCurrentWallet(const QString& name)
537{

Callers

nothing calls this directly

Calls 2

getWalletNameMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected