refactor: Rename getWallets to getOpenWallets in WalletController

This commit is contained in:
João Barbosa 2019-05-27 22:14:29 +01:00
parent 224eb9534a
commit fa90fe6440
3 changed files with 4 additions and 3 deletions

View file

@ -639,7 +639,7 @@ void BitcoinGUI::setWalletController(WalletController* wallet_controller)
connect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet);
connect(wallet_controller, &WalletController::walletRemoved, this, &BitcoinGUI::removeWallet);
for (WalletModel* wallet_model : m_wallet_controller->getWallets()) {
for (WalletModel* wallet_model : m_wallet_controller->getOpenWallets()) {
addWallet(wallet_model);
}
}

View file

@ -40,7 +40,7 @@ WalletController::~WalletController()
m_activity_thread.wait();
}
std::vector<WalletModel*> WalletController::getWallets() const
std::vector<WalletModel*> WalletController::getOpenWallets() const
{
QMutexLocker locker(&m_mutex);
return m_wallets;

View file

@ -40,7 +40,8 @@ public:
WalletController(interfaces::Node& node, const PlatformStyle* platform_style, OptionsModel* options_model, QObject* parent);
~WalletController();
std::vector<WalletModel*> getWallets() const;
//! Returns wallet models currently open.
std::vector<WalletModel*> getOpenWallets() const;
//! Returns all wallet names in the wallet dir mapped to whether the wallet
//! is loaded.