diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-08-17 15:21:50 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-09-01 12:13:50 -0400 |
commit | f1ee37319a7a211e5fb325406d62db5b61dbd30e (patch) | |
tree | c2d5552423172f378ce6c3b8fd34ace41404f0b9 /src/qt/test/addressbooktests.cpp | |
parent | 89a8299a14af68c1f96ca1650cbfd4fc2952e77b (diff) | |
download | bitcoin-f1ee37319a7a211e5fb325406d62db5b61dbd30e.tar.xz |
wallet: Reload previously loaded wallets on GUI startup
Enable the GUI to also use the load_on_startup feature.
Wallets loaded in the GUI always have load_on_startup=true.
When they are unloaded from the GUI, load_on_startup=false.
To facilitate this change, UpdateWalletSetting is moved into the wallet
module and called from within LoadWallet, RemoveWallet, and
Createwallet. This change does not actually touch the GUI code but
rather the wallet functions that are shared between the GUI and RPC.
Diffstat (limited to 'src/qt/test/addressbooktests.cpp')
-rw-r--r-- | src/qt/test/addressbooktests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/test/addressbooktests.cpp b/src/qt/test/addressbooktests.cpp index 84f981dff3..d6781460a7 100644 --- a/src/qt/test/addressbooktests.cpp +++ b/src/qt/test/addressbooktests.cpp @@ -112,7 +112,7 @@ void TestAddAddressesToSendBook(interfaces::Node& node) ClientModel clientModel(node, &optionsModel); AddWallet(wallet); WalletModel walletModel(interfaces::MakeWallet(wallet), clientModel, platformStyle.get()); - RemoveWallet(wallet); + RemoveWallet(wallet, nullopt); EditAddressDialog editAddressDialog(EditAddressDialog::NewSendingAddress); editAddressDialog.setModel(walletModel.getAddressTableModel()); |