Skip to content

Commit

Permalink
qt: Poll ShutdownTimer after init is done
Browse files Browse the repository at this point in the history
Github-Pull: #12377
Rebased-From: 2222bf0
Tree-SHA512: 575c10d9f043e2843616b989daaecfb357482445bc44b9f3af2fe0d891bb36b5ccb572f326703ea85291d56b9f6e8f4828496099b05889daea2277ad38aa0d0e
  • Loading branch information
MarcoFalke authored and laanwj committed Feb 8, 2018
1 parent 0f207c4 commit 604f289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/bitcoin.cpp
Expand Up @@ -388,7 +388,6 @@ void BitcoinApplication::createWindow(const NetworkStyle *networkStyle)

pollShutdownTimer = new QTimer(window);
connect(pollShutdownTimer, SIGNAL(timeout()), window, SLOT(detectShutdown()));
pollShutdownTimer->start(200);
}

void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle)
Expand Down Expand Up @@ -515,6 +514,7 @@ void BitcoinApplication::initializeResult(bool success)
window, SLOT(message(QString,QString,unsigned int)));
QTimer::singleShot(100, paymentServer, SLOT(uiReady()));
#endif
pollShutdownTimer->start(200);
} else {
quit(); // Exit main loop
}
Expand Down

0 comments on commit 604f289

Please sign in to comment.