diff options
-rw-r--r-- | src/gui/windowmanager.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index a65e0cd1a..15a536f15 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -227,7 +227,14 @@ void WindowManager::updateTitle() if (settings.login.empty()) str = settings.serverName; else - str.append(settings.login).append(" ").append(settings.serverName); + { + // dont show ugly account names in title, use "Session" insteed. + if (settings.options.uniqueSession) + str.append("Session "); + else + str.append(settings.login); + str.append(" ").append(settings.serverName); + } if (str.empty()) { settings.windowCaption = strprintf("%s %s", |