| 502 | |
| 503 | #ifdef ENABLE_WALLET |
| 504 | bool 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 | |
| 520 | bool BitcoinGUI::removeWallet(WalletModel* walletModel) |
| 521 | { |
nothing calls this directly
no test coverage detected