Skip to content

Commit 2222bf0

Browse files
author
MarcoFalke
committed
qt: Poll ShutdownTimer after init is done
1 parent 5ad3205 commit 2222bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/bitcoin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ void BitcoinApplication::createWindow(const NetworkStyle *networkStyle)
388388

389389
pollShutdownTimer = new QTimer(window);
390390
connect(pollShutdownTimer, SIGNAL(timeout()), window, SLOT(detectShutdown()));
391-
pollShutdownTimer->start(200);
392391
}
393392

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

0 commit comments

Comments
 (0)