Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2019 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include <config/bitcoin-config.h> | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include <qt/bitcoin.h> | #include <qt/bitcoin.h> | ||||
▲ Show 20 Lines • Show All 346 Lines • ▼ Show 20 Lines | #endif | ||||
Q_EMIT requestedShutdown(); | Q_EMIT requestedShutdown(); | ||||
} | } | ||||
void BitcoinApplication::addWallet(WalletModel *walletModel) { | void BitcoinApplication::addWallet(WalletModel *walletModel) { | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
window->addWallet(walletModel); | window->addWallet(walletModel); | ||||
if (m_wallet_models.empty()) { | if (m_wallet_models.empty()) { | ||||
window->setCurrentWallet(walletModel->getWalletName()); | window->setCurrentWallet(walletModel); | ||||
} | } | ||||
connect(walletModel, &WalletModel::coinsSent, paymentServer, | connect(walletModel, &WalletModel::coinsSent, paymentServer, | ||||
&PaymentServer::fetchPaymentACK); | &PaymentServer::fetchPaymentACK); | ||||
connect(walletModel, &WalletModel::unload, this, | connect(walletModel, &WalletModel::unload, this, | ||||
&BitcoinApplication::removeWallet); | &BitcoinApplication::removeWallet); | ||||
m_wallet_models.push_back(walletModel); | m_wallet_models.push_back(walletModel); | ||||
▲ Show 20 Lines • Show All 412 Lines • Show Last 20 Lines |