aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2018-02-07 10:30:59 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2018-02-07 10:37:40 +0100
commitf5a4c3ddf48db2119b2b1a438b9462a6236565cd (patch)
tree48f3ba58e6e06276e6290858a9a57a382ffa4dc0 /src/qt
parent1462bde767a121233118c04c5629bd9de1ba0f16 (diff)
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>
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/bitcoin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index b26d99a20a..1e91d63dd1 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
}
}