gui: Show current wallet name in window title

This commit is contained in:
João Barbosa
2019-01-11 23:49:36 +00:00
parent 8a79261124
commit fe7048b39b
4 changed files with 28 additions and 11 deletions

View File

@@ -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();