Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 433 Lines • ▼ Show 20 Lines | void BitcoinApplication::requestShutdown(Config &config) { | ||||
qDebug() << __func__ << ": Requesting shutdown"; | qDebug() << __func__ << ": Requesting shutdown"; | ||||
startThread(); | startThread(); | ||||
window->hide(); | window->hide(); | ||||
window->setClientModel(0); | window->setClientModel(0); | ||||
pollShutdownTimer->stop(); | pollShutdownTimer->stop(); | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
window->removeAllWallets(); | window->removeAllWallets(); | ||||
for (WalletModel *walletModel : m_wallet_models) { | for (const WalletModel *walletModel : m_wallet_models) { | ||||
delete walletModel; | delete walletModel; | ||||
} | } | ||||
m_wallet_models.clear(); | m_wallet_models.clear(); | ||||
#endif | #endif | ||||
delete clientModel; | delete clientModel; | ||||
clientModel = 0; | clientModel = 0; | ||||
m_node.startShutdown(); | m_node.startShutdown(); | ||||
▲ Show 20 Lines • Show All 407 Lines • Show Last 20 Lines |