From f5a4c3ddf48db2119b2b1a438b9462a6236565cd Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 7 Feb 2018 10:30:59 +0100 Subject: [PATCH] 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 --- src/qt/bitcoin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index b26d99a20..1e91d63dd 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -516,6 +516,7 @@ void BitcoinApplication::initializeResult(bool success) QTimer::singleShot(100, paymentServer, SLOT(uiReady())); #endif } else { + Q_EMIT splashFinished(window); quit(); // Exit main loop } }