mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
qt: Assert QMetaObject::invokeMethod result
This commit is contained in:
parent
f27bd96b5f
commit
64fee48944
7 changed files with 44 additions and 22 deletions
|
|
@ -124,7 +124,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue