| 433 | } |
| 434 | |
| 435 | void BitcoinApplication::addWallet(WalletModel* walletModel) |
| 436 | { |
| 437 | #ifdef ENABLE_WALLET |
| 438 | window->addWallet(walletModel); |
| 439 | |
| 440 | if (m_wallet_models.empty()) { |
| 441 | window->setCurrentWallet(walletModel->getWalletName()); |
| 442 | } |
| 443 | |
| 444 | connect(walletModel, SIGNAL(coinsSent(WalletModel*, SendCoinsRecipient, QByteArray)), |
| 445 | paymentServer, SLOT(fetchPaymentACK(WalletModel*, const SendCoinsRecipient&, QByteArray))); |
| 446 | connect(walletModel, SIGNAL(unload()), this, SLOT(removeWallet())); |
| 447 | |
| 448 | m_wallet_models.push_back(walletModel); |
| 449 | #endif |
| 450 | } |
| 451 | |
| 452 | void BitcoinApplication::removeWallet() |
| 453 | { |
nothing calls this directly
no test coverage detected