Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 374 Lines • ▼ Show 20 Lines | void BitcoinApplication::initializeResult(bool success) { | ||||
// Log this only after AppInitMain finishes, as then logging setup is | // Log this only after AppInitMain finishes, as then logging setup is | ||||
// guaranteed complete. | // guaranteed complete. | ||||
qInfo() << "Platform customization:" << platformStyle->getName(); | qInfo() << "Platform customization:" << platformStyle->getName(); | ||||
clientModel = new ClientModel(node(), optionsModel); | clientModel = new ClientModel(node(), optionsModel); | ||||
window->setClientModel(clientModel); | window->setClientModel(clientModel); | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
if (WalletModel::isWalletEnabled()) { | if (WalletModel::isWalletEnabled()) { | ||||
m_wallet_controller = | m_wallet_controller = | ||||
new WalletController(node(), platformStyle, optionsModel, this); | new WalletController(*clientModel, platformStyle, this); | ||||
window->setWalletController(m_wallet_controller); | window->setWalletController(m_wallet_controller); | ||||
if (paymentServer) { | if (paymentServer) { | ||||
paymentServer->setOptionsModel(optionsModel); | paymentServer->setOptionsModel(optionsModel); | ||||
#ifdef ENABLE_BIP70 | #ifdef ENABLE_BIP70 | ||||
PaymentServer::LoadRootCAs(); | PaymentServer::LoadRootCAs(); | ||||
connect(m_wallet_controller, &WalletController::coinsSent, | connect(m_wallet_controller, &WalletController::coinsSent, | ||||
paymentServer, &PaymentServer::fetchPaymentACK); | paymentServer, &PaymentServer::fetchPaymentACK); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 407 Lines • Show Last 20 Lines |