refactor: Rename getWallets to getOpenWallets in WalletController

This commit is contained in:
João Barbosa committed 2019-07-08 15:07:17 +01:00
1 parent 224eb9534a
commit fa90fe6440
3 files changed
+4 -3

No files matched your search

+1 -1
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);
}
}
+1 -1
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;
+2 -1
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.