Skip to content

Commit f5a4c3d

Browse files
committed
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 <[email protected]>
1 parent 1462bde commit f5a4c3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/qt/bitcoin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ void BitcoinApplication::initializeResult(bool success)
516516
QTimer::singleShot(100, paymentServer, SLOT(uiReady()));
517517
#endif
518518
} else {
519+
Q_EMIT splashFinished(window);
519520
quit(); // Exit main loop
520521
}
521522
}

0 commit comments

Comments
 (0)