Page MenuHomePhabricator

Pass WalletModel down to SendCoinsEntry by construct
ClosedPublic

Authored by deadalnix on Jul 23 2019, 16:53.

Details

Summary

This ensures the wallet model is passed down in constructors so that the SendCoinsEntry has it right away.

Test Plan
make check

Make sure the ubsan build is now fixed.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fixubsan
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6923
Build 11893: Bitcoin ABC Buildbot (legacy)
Build 11892: arc lint + arc unit

Event Timeline

deadalnix retitled this revision from Pass WalletModel down to SendCoinsEntry y construct to Pass WalletModel down to SendCoinsEntry by construct.Jul 23 2019, 17:43
jasonbcox requested changes to this revision.Jul 23 2019, 18:38
jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
src/qt/sendcoinsdialog.cpp
143

nit: this comment isn't useful

src/qt/sendcoinsentry.cpp
102

This doesn't appear to depend on the options model.

This revision now requires changes to proceed.Jul 23 2019, 18:38
src/qt/sendcoinsdialog.cpp
143

Yes, the model has been set, but there are triggers that need to run when it is set which have not run yet.

src/qt/sendcoinsentry.cpp
102

Good catch.

Update SendCoinsEntry::setModel

This revision is now accepted and ready to land.Jul 24 2019, 00:45