qt, refactor: Drop intermediate BitcoinApplication::shutdownResult slot

This commit is contained in:
Hennadii Stepanov 2021-06-07 18:50:52 +03:00
parent f3a17bbe5f
commit 451ca244db
No known key found for this signature in database
GPG key ID: 410108112E7EA81F
2 changed files with 1 additions and 7 deletions

View file

@ -297,7 +297,7 @@ void BitcoinApplication::startThread()
/* communication to and from thread */
connect(&m_executor.value(), &InitExecutor::initializeResult, this, &BitcoinApplication::initializeResult);
connect(&m_executor.value(), &InitExecutor::shutdownResult, this, &BitcoinApplication::shutdownResult);
connect(&m_executor.value(), &InitExecutor::shutdownResult, this, &QCoreApplication::quit);
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);
@ -418,11 +418,6 @@ void BitcoinApplication::initializeResult(bool success, interfaces::BlockAndHead
}
}
void BitcoinApplication::shutdownResult()
{
quit();
}
void BitcoinApplication::handleRunawayException(const QString &message)
{
QMessageBox::critical(

View file

@ -73,7 +73,6 @@ public Q_SLOTS:
void initializeResult(bool success, interfaces::BlockAndHeaderTipInfo tip_info);
/// Request core shutdown
void requestShutdown();
void shutdownResult();
/// Handle runaway exceptions. Shows a message box with the problem and quits the program.
void handleRunawayException(const QString &message);