diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-09 21:05:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-09 21:05:11 +0300 |
commit | c175949a70a621a246df04a7824267a59299136b (patch) | |
tree | 988feb528c421dbc69eabbb1cc4fc03c97912cd6 /src/gui/windowmanager.cpp | |
parent | 76a67b908156124490210db74832f34d3ab3652e (diff) | |
download | manaverse-c175949a70a621a246df04a7824267a59299136b.tar.gz manaverse-c175949a70a621a246df04a7824267a59299136b.tar.bz2 manaverse-c175949a70a621a246df04a7824267a59299136b.tar.xz manaverse-c175949a70a621a246df04a7824267a59299136b.zip |
Show player login in window title.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-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", |