diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-01-11 23:49:36 +0000 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-01-15 16:23:55 +0000 |
commit | fe7048b39bc655d65557ca95dda37c364947ddbf (patch) | |
tree | 036dd18d66a507fc37e6f1802a31bf6de7f1565a /src/qt/walletframe.cpp | |
parent | 8a792611249fdefb31a8c69efd9c5022092e25cf (diff) | |
download | bitcoin-fe7048b39bc655d65557ca95dda37c364947ddbf.tar.xz |
gui: Show current wallet name in window title
Diffstat (limited to 'src/qt/walletframe.cpp')
-rw-r--r-- | src/qt/walletframe.cpp | 8 |
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(); |