mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
qt: Replace QCoreApplication::quit()
with QCoreApplication::exit(0)
Qt 5: - no behavior change Qt 6: - this change avoids sending a duplicated `QEvent::Quit`
This commit is contained in:
parent
d1b3dfb275
commit
252f363f2f
2 changed files with 4 additions and 2 deletions
|
@ -308,7 +308,9 @@ void BitcoinApplication::startThread()
|
|||
|
||||
/* communication to and from thread */
|
||||
connect(&m_executor.value(), &InitExecutor::initializeResult, this, &BitcoinApplication::initializeResult);
|
||||
connect(&m_executor.value(), &InitExecutor::shutdownResult, this, &QCoreApplication::quit);
|
||||
connect(&m_executor.value(), &InitExecutor::shutdownResult, this, [] {
|
||||
QCoreApplication::exit(0);
|
||||
});
|
||||
connect(&m_executor.value(), &InitExecutor::runawayException, this, &BitcoinApplication::handleRunawayException);
|
||||
connect(this, &BitcoinApplication::requestedInitialize, &m_executor.value(), &InitExecutor::initialize);
|
||||
connect(this, &BitcoinApplication::requestedShutdown, &m_executor.value(), &InitExecutor::shutdown);
|
||||
|
|
|
@ -119,6 +119,6 @@ AppTests::HandleCallback::~HandleCallback()
|
|||
assert(it != callbacks.end());
|
||||
callbacks.erase(it);
|
||||
if (callbacks.empty()) {
|
||||
m_app_tests.m_app.quit();
|
||||
m_app_tests.m_app.exit(0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue