aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletframe.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-08-11 19:50:12 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-08-14 19:18:54 +0300
commit7d0d4c04903cafade32be3bf2bf1cad3f33c6c03 (patch)
tree9dc6c0cb8f7d42b2e0b678961c8101dafb4d7a3f /src/qt/walletframe.cpp
parentadf9bcfc37dbe93988588d1cfef8d9ee749be66f (diff)
downloadbitcoin-7d0d4c04903cafade32be3bf2bf1cad3f33c6c03.tar.xz
qt: Add WalletFrame::currentWalletSet signal
The connection of the WalletFrame::currentWalletSet signal to the BitcoinGUI::updateWalletStatus is a shorter and more descriptive way to call both the setHDStatus and setEncryptionStatus member functions of the BitcoinGUI class in comparison to using of the WalletView::updateEncryptionStatus slot.
Diffstat (limited to 'src/qt/walletframe.cpp')
-rw-r--r--src/qt/walletframe.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp
index 3d8bc0c7c5..30c29eb356 100644
--- a/src/qt/walletframe.cpp
+++ b/src/qt/walletframe.cpp
@@ -109,7 +109,8 @@ void WalletFrame::setCurrentWallet(WalletModel* wallet_model)
walletView->updateGeometry();
walletStack->setCurrentWidget(walletView);
- walletView->updateEncryptionStatus();
+
+ Q_EMIT currentWalletSet();
}
void WalletFrame::removeWallet(WalletModel* wallet_model)