diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-01-19 21:17:51 +0000 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-01-19 21:17:51 +0000 |
commit | 1ed425ea17639c20ad3b3e3ef4b34d669b2fd2a4 (patch) | |
tree | b3e8c4cabde385a7900fa17f594bb6e769e48bdd /src/qt | |
parent | fe60ee96e9155a0e3f81da2a2d21e6e884b8cc8b (diff) |
gui: Fix window title update
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/bitcoingui.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index d424c1ef2d..37e3b5e43c 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -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); } |