aboutsummaryrefslogtreecommitdiff
path: root/src/qt/splashscreen.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-06 17:16:01 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-09 14:16:23 +0100
commitdf695db3237571c662a4e199709f9c6615ffa0c5 (patch)
tree27297b24e99388a7182235bfb5402d468ea7981c /src/qt/splashscreen.cpp
parente2f7677bdeb15d1517520ddc3e95e42ca13f721a (diff)
downloadbitcoin-df695db3237571c662a4e199709f9c6615ffa0c5.tar.xz
qt: Assert QMetaObject::invokeMethod result
Github-Pull: #16348 Rebased-From: 64fee489448c62319e77941c30152084695b5a5d
Diffstat (limited to 'src/qt/splashscreen.cpp')
-rw-r--r--src/qt/splashscreen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/splashscreen.cpp b/src/qt/splashscreen.cpp
index 0126a2920e..61696ace1a 100644
--- a/src/qt/splashscreen.cpp
+++ b/src/qt/splashscreen.cpp
@@ -156,11 +156,12 @@ void SplashScreen::finish()
static void InitMessage(SplashScreen *splash, const std::string &message)
{
- QMetaObject::invokeMethod(splash, "showMessage",
+ bool invoked = QMetaObject::invokeMethod(splash, "showMessage",
Qt::QueuedConnection,
Q_ARG(QString, QString::fromStdString(message)),
Q_ARG(int, Qt::AlignBottom|Qt::AlignHCenter),
Q_ARG(QColor, QColor(55,55,55)));
+ assert(invoked);
}
static void ShowProgress(SplashScreen *splash, const std::string &title, int nProgress, bool resume_possible)