mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
qt: Make sure splash screen is freed on AppInitMain fail
The `splashFinished` event was never sent if AppInitMain fails, causing the splash screen to stick around, causing problems later. This bug has existed for a while but is now trigging potential crashed because the splash screen subscribes to wallet events. Meant to fix #12372. Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
This commit is contained in:
parent
1462bde767
commit
f5a4c3ddf4
1 changed files with 1 additions and 0 deletions
|
@ -516,6 +516,7 @@ void BitcoinApplication::initializeResult(bool success)
|
||||||
QTimer::singleShot(100, paymentServer, SLOT(uiReady()));
|
QTimer::singleShot(100, paymentServer, SLOT(uiReady()));
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
Q_EMIT splashFinished(window);
|
||||||
quit(); // Exit main loop
|
quit(); // Exit main loop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue