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/test | |
parent | f27bd96b5fdc2921d93c44bbf422bff0e979c4de (diff) |
qt: Assert QMetaObject::invokeMethod result
Diffstat (limited to 'src/qt/test')
-rw-r--r-- | src/qt/test/wallettests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/test/wallettests.cpp b/src/qt/test/wallettests.cpp index e54915ec75..120dff95c0 100644 --- a/src/qt/test/wallettests.cpp +++ b/src/qt/test/wallettests.cpp @@ -68,7 +68,8 @@ uint256 SendCoins(CWallet& wallet, SendCoinsDialog& sendCoinsDialog, const CTxDe if (status == CT_NEW) txid = hash; })); ConfirmSend(); - QMetaObject::invokeMethod(&sendCoinsDialog, "on_sendButton_clicked"); + bool invoked = QMetaObject::invokeMethod(&sendCoinsDialog, "on_sendButton_clicked"); + assert(invoked); return txid; } |