summaryrefslogtreecommitdiff
path: root/src/gui/windowmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-09 21:05:11 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-09 21:05:11 +0300
commitc175949a70a621a246df04a7824267a59299136b (patch)
tree988feb528c421dbc69eabbb1cc4fc03c97912cd6 /src/gui/windowmanager.cpp
parent76a67b908156124490210db74832f34d3ab3652e (diff)
downloadmv-c175949a70a621a246df04a7824267a59299136b.tar.gz
mv-c175949a70a621a246df04a7824267a59299136b.tar.bz2
mv-c175949a70a621a246df04a7824267a59299136b.tar.xz
mv-c175949a70a621a246df04a7824267a59299136b.zip
Show player login in window title.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r--src/gui/windowmanager.cpp6
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",