diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-07-06 17:16:01 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-07-08 21:30:25 +0100 |
commit | 64fee489448c62319e77941c30152084695b5a5d (patch) | |
tree | c1bcdf98960b532e5762f58cf7e95e0e00db3241 /src/qt/splashscreen.cpp | |
parent | f27bd96b5fdc2921d93c44bbf422bff0e979c4de (diff) |
qt: Assert QMetaObject::invokeMethod result
Diffstat (limited to 'src/qt/splashscreen.cpp')
-rw-r--r-- | src/qt/splashscreen.cpp | 3 |
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) |