Skip to content

Commit 1ed425e

Browse files
committed
gui: Fix window title update
1 parent fe60ee9 commit 1ed425e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/qt/bitcoingui.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,16 +1225,18 @@ void BitcoinGUI::updateProxyIcon()
12251225

12261226
void BitcoinGUI::updateWindowTitle()
12271227
{
1228-
QString window_title = tr(PACKAGE_NAME) + " - ";
1228+
QString window_title = tr(PACKAGE_NAME);
12291229
#ifdef ENABLE_WALLET
12301230
if (walletFrame) {
12311231
WalletModel* const wallet_model = walletFrame->currentWalletModel();
12321232
if (wallet_model && !wallet_model->getWalletName().isEmpty()) {
1233-
window_title += wallet_model->getDisplayName() + " - ";
1233+
window_title += " - " + wallet_model->getDisplayName();
12341234
}
12351235
}
12361236
#endif
1237-
window_title += m_network_style->getTitleAddText();
1237+
if (!m_network_style->getTitleAddText().isEmpty()) {
1238+
window_title += " - " + m_network_style->getTitleAddText();
1239+
}
12381240
setWindowTitle(window_title);
12391241
}
12401242

0 commit comments

Comments
 (0)