Skip to content

Commit

Permalink
gui: Fix window title update
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Jan 19, 2019
1 parent fe60ee9 commit 1ed425e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/qt/bitcoingui.cpp
Expand Up @@ -1225,16 +1225,18 @@ void BitcoinGUI::updateProxyIcon()

void BitcoinGUI::updateWindowTitle()
{
QString window_title = tr(PACKAGE_NAME) + " - ";
QString window_title = tr(PACKAGE_NAME);
#ifdef ENABLE_WALLET
if (walletFrame) {
WalletModel* const wallet_model = walletFrame->currentWalletModel();
if (wallet_model && !wallet_model->getWalletName().isEmpty()) {
window_title += wallet_model->getDisplayName() + " - ";
window_title += " - " + wallet_model->getDisplayName();
}
}
#endif
window_title += m_network_style->getTitleAddText();
if (!m_network_style->getTitleAddText().isEmpty()) {
window_title += " - " + m_network_style->getTitleAddText();
}
setWindowTitle(window_title);
}

Expand Down

0 comments on commit 1ed425e

Please sign in to comment.