mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
qt: Delay shutdown while a modal dialog is active
This commit is contained in:
parent
8c0eb80f41
commit
89c277a6fc
1 changed files with 5 additions and 1 deletions
|
@ -268,7 +268,11 @@ void BitcoinApplication::createWindow(const NetworkStyle *networkStyle)
|
|||
connect(window, &BitcoinGUI::quitRequested, this, &BitcoinApplication::requestShutdown);
|
||||
|
||||
pollShutdownTimer = new QTimer(window);
|
||||
connect(pollShutdownTimer, &QTimer::timeout, window, &BitcoinGUI::detectShutdown);
|
||||
connect(pollShutdownTimer, &QTimer::timeout, [this]{
|
||||
if (!QApplication::activeModalWidget()) {
|
||||
window->detectShutdown();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle)
|
||||
|
|
Loading…
Add table
Reference in a new issue