Skip to content

Commit

Permalink
qt: Poll ShutdownTimer after init is done
Browse files Browse the repository at this point in the history
Summary:
Backport of Core PR12377
bitcoin/bitcoin#12377

Test Plan: `ninja check check-functional`

Reviewers: deadalnix, Fabien, #bitcoin_abc, markblundeberg

Reviewed By: #bitcoin_abc, markblundeberg

Subscribers: teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2545
  • Loading branch information
MarcoFalke authored and jasonbcox committed Feb 14, 2019
1 parent 721e174 commit 4a2ad75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ void BitcoinApplication::createWindow(const Config *config,
pollShutdownTimer = new QTimer(window);
connect(pollShutdownTimer, SIGNAL(timeout()), window,
SLOT(detectShutdown()));
pollShutdownTimer->start(200);
}

void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle) {
Expand Down Expand Up @@ -535,6 +534,8 @@ void BitcoinApplication::initializeResult(bool success) {
window, SLOT(message(QString, QString, unsigned int)));
QTimer::singleShot(100, paymentServer, SLOT(uiReady()));
#endif

pollShutdownTimer->start(200);
}

void BitcoinApplication::shutdownResult() {
Expand Down

0 comments on commit 4a2ad75

Please sign in to comment.