qt: Poll ShutdownTimer after init is done

pull/12377/head
MarcoFalke 7 years ago
parent 5ad320598f
commit 2222bf02c9
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

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

Loading…
Cancel
Save