mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
qt, refactor: Drop intermediate BitcoinApplication::shutdownResult slot
This commit is contained in:
parent
f3a17bbe5f
commit
451ca244db
2 changed files with 1 additions and 7 deletions
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue