| 518 | } |
| 519 | |
| 520 | bool 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 | |
| 536 | bool BitcoinGUI::setCurrentWallet(const QString& name) |
| 537 | { |
nothing calls this directly
no test coverage detected