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

Method addWallet

src/qt/bitcoin.cpp:435–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void 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
452void BitcoinApplication::removeWallet()
453{

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.45
setCurrentWalletMethod · 0.45
getWalletNameMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected