aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-06-07 18:50:52 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-09-29 17:02:00 +0300
commit451ca244db8bc71ffc3cc9982d025f144cc8f3bc (patch)
tree35a251abe31f6ee584142f17241740f014e1c7f0 /src
parentf3a17bbe5f7d23b6ecc20e363920492b50859dad (diff)
qt, refactor: Drop intermediate BitcoinApplication::shutdownResult slot
Diffstat (limited to 'src')
-rw-r--r--src/qt/bitcoin.cpp7
-rw-r--r--src/qt/bitcoin.h1
2 files changed, 1 insertions, 7 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 8ae6db831f..e51c7d46f6 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -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(
diff --git a/src/qt/bitcoin.h b/src/qt/bitcoin.h
index 6c2c1c9ebc..116e941501 100644
--- a/src/qt/bitcoin.h
+++ b/src/qt/bitcoin.h
@@ -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);