diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-04-17 18:56:44 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-04-04 16:52:40 -0400 |
commit | a0704a8996bb950ae3c4d5b5a30e9dfe34cde1d3 (patch) | |
tree | d7dc5b382640f965bdff98baa1aa4e21a7af5d20 /src/qt/bitcoin.cpp | |
parent | 90d4640b7eff3154a0750c5acb52d39bd41e0bbb (diff) |
Remove most direct bitcoin calls from qt/walletmodel.cpp
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r-- | src/qt/bitcoin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 279726d6df..33a5fe8015 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -465,8 +465,10 @@ void BitcoinApplication::initializeResult(bool success) #ifdef ENABLE_WALLET bool fFirstWallet = true; - for (CWalletRef pwallet : vpwallets) { - WalletModel * const walletModel = new WalletModel(platformStyle, pwallet, optionsModel); + auto wallets = m_node.getWallets(); + auto cwallet = ::vpwallets.begin(); + for (auto& wallet : wallets) { + WalletModel * const walletModel = new WalletModel(std::move(wallet), m_node, platformStyle, *cwallet++, optionsModel); window->addWallet(walletModel); if (fFirstWallet) { |