Skip to content

Commit

Permalink
qt, refactor: Drop intermediate BitcoinApplication::shutdownResult slot
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jun 11, 2021
1 parent 65c9f77 commit b441b47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void BitcoinApplication::startThread()

/* communication to and from thread */
connect(executor, &BitcoinCore::initializeResult, this, &BitcoinApplication::initializeResult);
connect(executor, &BitcoinCore::shutdownResult, this, &BitcoinApplication::shutdownResult);
connect(executor, &BitcoinCore::shutdownResult, this, &QCoreApplication::quit);
connect(executor, &BitcoinCore::runawayException, this, &BitcoinApplication::handleRunawayException);
connect(this, &BitcoinApplication::requestedInitialize, executor, &BitcoinCore::initialize);
connect(this, &BitcoinApplication::requestedShutdown, executor, &BitcoinCore::shutdown);
Expand Down Expand Up @@ -416,11 +416,6 @@ void BitcoinApplication::initializeResult(bool success, interfaces::BlockAndHead
}
}

void BitcoinApplication::shutdownResult()
{
quit();
}

void BitcoinApplication::handleRunawayException(const QString &message)
{
QMessageBox::critical(
Expand Down
1 change: 0 additions & 1 deletion src/qt/bitcoin.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,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);

Expand Down

0 comments on commit b441b47

Please sign in to comment.