Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | if (coreThread) { | ||||
qDebug() << __func__ << ": Stopping thread"; | qDebug() << __func__ << ": Stopping thread"; | ||||
coreThread->quit(); | coreThread->quit(); | ||||
coreThread->wait(); | coreThread->wait(); | ||||
qDebug() << __func__ << ": Stopped thread"; | qDebug() << __func__ << ": Stopped thread"; | ||||
} | } | ||||
delete window; | delete window; | ||||
window = nullptr; | window = nullptr; | ||||
delete optionsModel; | |||||
optionsModel = nullptr; | |||||
delete platformStyle; | delete platformStyle; | ||||
platformStyle = nullptr; | platformStyle = nullptr; | ||||
} | } | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
void BitcoinApplication::createPaymentServer() { | void BitcoinApplication::createPaymentServer() { | ||||
paymentServer = new PaymentServer(this); | paymentServer = new PaymentServer(this); | ||||
} | } | ||||
#endif | #endif | ||||
void BitcoinApplication::createOptionsModel(bool resetSettings) { | void BitcoinApplication::createOptionsModel(bool resetSettings) { | ||||
optionsModel = new OptionsModel(nullptr, resetSettings); | optionsModel = new OptionsModel(this, resetSettings); | ||||
} | } | ||||
void BitcoinApplication::createWindow(const Config *config, | void BitcoinApplication::createWindow(const Config *config, | ||||
const NetworkStyle *networkStyle) { | const NetworkStyle *networkStyle) { | ||||
window = | window = | ||||
new BitcoinGUI(node(), config, platformStyle, networkStyle, nullptr); | new BitcoinGUI(node(), config, platformStyle, networkStyle, nullptr); | ||||
pollShutdownTimer = new QTimer(window); | pollShutdownTimer = new QTimer(window); | ||||
▲ Show 20 Lines • Show All 560 Lines • Show Last 20 Lines |