aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletcontroller.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <[email protected]>2019-07-06 17:16:01 +0100
committerJoão Barbosa <[email protected]>2019-07-09 14:16:23 +0100
commitdf695db3237571c662a4e199709f9c6615ffa0c5 (patch)
tree27297b24e99388a7182235bfb5402d468ea7981c /src/qt/walletcontroller.cpp
parentgui: Fix missing qRegisterMetaType(WalletModel*) (diff)
downloaddiscoin-df695db3237571c662a4e199709f9c6615ffa0c5.tar.xz
discoin-df695db3237571c662a4e199709f9c6615ffa0c5.zip
qt: Assert QMetaObject::invokeMethod result
Github-Pull: #16348 Rebased-From: 64fee489448c62319e77941c30152084695b5a5d
Diffstat (limited to 'src/qt/walletcontroller.cpp')
-rw-r--r--src/qt/walletcontroller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/walletcontroller.cpp b/src/qt/walletcontroller.cpp
index 019bd6582..9de2dc675 100644
--- a/src/qt/walletcontroller.cpp
+++ b/src/qt/walletcontroller.cpp
@@ -121,7 +121,8 @@ WalletModel* WalletController::getOrCreateWallet(std::unique_ptr<interfaces::Wal
} else {
// Handler callback runs in a different thread so fix wallet model thread affinity.
wallet_model->moveToThread(thread());
- QMetaObject::invokeMethod(this, "addWallet", Qt::QueuedConnection, Q_ARG(WalletModel*, wallet_model));
+ bool invoked = QMetaObject::invokeMethod(this, "addWallet", Qt::QueuedConnection, Q_ARG(WalletModel*, wallet_model));
+ assert(invoked);
}
return wallet_model;