aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletframe.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-01-11 23:49:36 +0000
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-01-15 16:23:55 +0000
commitfe7048b39bc655d65557ca95dda37c364947ddbf (patch)
tree036dd18d66a507fc37e6f1802a31bf6de7f1565a /src/qt/walletframe.cpp
parent8a792611249fdefb31a8c69efd9c5022092e25cf (diff)
downloadbitcoin-fe7048b39bc655d65557ca95dda37c364947ddbf.tar.xz
gui: Show current wallet name in window title
Diffstat (limited to 'src/qt/walletframe.cpp')
-rw-r--r--src/qt/walletframe.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp
index 4f8b6d363e..466f2278eb 100644
--- a/src/qt/walletframe.cpp
+++ b/src/qt/walletframe.cpp
@@ -208,11 +208,17 @@ void WalletFrame::usedReceivingAddresses()
walletView->usedReceivingAddresses();
}
-WalletView *WalletFrame::currentWalletView()
+WalletView* WalletFrame::currentWalletView() const
{
return qobject_cast<WalletView*>(walletStack->currentWidget());
}
+WalletModel* WalletFrame::currentWalletModel() const
+{
+ WalletView* wallet_view = currentWalletView();
+ return wallet_view ? wallet_view->getWalletModel() : nullptr;
+}
+
void WalletFrame::outOfSyncWarningClicked()
{
Q_EMIT requestedSyncWarningInfo();