Skip to content

Commit fa90fe6

Browse files
committed
refactor: Rename getWallets to getOpenWallets in WalletController
1 parent 224eb95 commit fa90fe6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/qt/bitcoingui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ void BitcoinGUI::setWalletController(WalletController* wallet_controller)
639639
connect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet);
640640
connect(wallet_controller, &WalletController::walletRemoved, this, &BitcoinGUI::removeWallet);
641641

642-
for (WalletModel* wallet_model : m_wallet_controller->getWallets()) {
642+
for (WalletModel* wallet_model : m_wallet_controller->getOpenWallets()) {
643643
addWallet(wallet_model);
644644
}
645645
}

src/qt/walletcontroller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ WalletController::~WalletController()
4040
m_activity_thread.wait();
4141
}
4242

43-
std::vector<WalletModel*> WalletController::getWallets() const
43+
std::vector<WalletModel*> WalletController::getOpenWallets() const
4444
{
4545
QMutexLocker locker(&m_mutex);
4646
return m_wallets;

src/qt/walletcontroller.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class WalletController : public QObject
4040
WalletController(interfaces::Node& node, const PlatformStyle* platform_style, OptionsModel* options_model, QObject* parent);
4141
~WalletController();
4242

43-
std::vector<WalletModel*> getWallets() const;
43+
//! Returns wallet models currently open.
44+
std::vector<WalletModel*> getOpenWallets() const;
4445

4546
//! Returns all wallet names in the wallet dir mapped to whether the wallet
4647
//! is loaded.

0 commit comments

Comments
 (0)