diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-08-11 19:50:12 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-08-14 19:18:54 +0300 |
commit | 7d0d4c04903cafade32be3bf2bf1cad3f33c6c03 (patch) | |
tree | 9dc6c0cb8f7d42b2e0b678961c8101dafb4d7a3f /src/qt/bitcoingui.cpp | |
parent | adf9bcfc37dbe93988588d1cfef8d9ee749be66f (diff) | |
download | bitcoin-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/bitcoingui.cpp')
-rw-r--r-- | src/qt/bitcoingui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index fe606519af..61d8be62d7 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -113,6 +113,7 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty connect(walletFrame, &WalletFrame::message, [this](const QString& title, const QString& message, unsigned int style) { this->message(title, message, style); }); + connect(walletFrame, &WalletFrame::currentWalletSet, [this] { updateWalletStatus(); }); setCentralWidget(walletFrame); } else #endif // ENABLE_WALLET |