mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
qt: Poll ShutdownTimer after init is done
This commit is contained in:
parent
5ad320598f
commit
2222bf02c9
@ -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…
Reference in New Issue
Block a user