diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windowmanager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index 822b3b3e9..479c8d2ca 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -165,7 +165,11 @@ void WindowManager::initTitle() void WindowManager::updateTitle() { - const std::string str = settings.serverName; + std::string str; + if (settings.login.empty()) + str = settings.serverName; + else + str.append(settings.login).append(" ").append(settings.serverName); if (str.empty()) { settings.windowCaption = strprintf("%s %s", |