diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-04-17 14:23:14 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-04-04 16:52:40 -0400 |
commit | c0f2756be517feddacd7c6b89b9faa888b3fef8e (patch) | |
tree | 14986754eac1bc64cf1b409237bc1b6edc85ed26 /src/qt/test/wallettests.cpp | |
parent | 71e0d90876efd11e2a4aeb8f3f806c5a1fd54b42 (diff) | |
download | bitcoin-c0f2756be517feddacd7c6b89b9faa888b3fef8e.tar.xz |
Remove direct bitcoin calls from qt/optionsmodel.cpp
Diffstat (limited to 'src/qt/test/wallettests.cpp')
-rw-r--r-- | src/qt/test/wallettests.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/test/wallettests.cpp b/src/qt/test/wallettests.cpp index c9898e52ca..ebca4b6499 100644 --- a/src/qt/test/wallettests.cpp +++ b/src/qt/test/wallettests.cpp @@ -1,5 +1,6 @@ #include <qt/test/wallettests.h> +#include <interface/node.h> #include <qt/bitcoinamountfield.h> #include <qt/callback.h> #include <qt/optionsmodel.h> @@ -175,7 +176,8 @@ void TestGUI() std::unique_ptr<const PlatformStyle> platformStyle(PlatformStyle::instantiate("other")); SendCoinsDialog sendCoinsDialog(platformStyle.get()); TransactionView transactionView(platformStyle.get()); - OptionsModel optionsModel; + auto node = interface::MakeNode(); + OptionsModel optionsModel(*node); WalletModel walletModel(platformStyle.get(), &wallet, &optionsModel); sendCoinsDialog.setModel(&walletModel); transactionView.setModel(&walletModel); |