summaryrefslogtreecommitdiff
path: root/src/gui/windows/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-14 15:15:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-14 15:15:51 +0300
commit5c7ea2e2dc120107145e7314119a82654280c010 (patch)
tree5d2d9b88ac3c30907bb7bb936c65be1f7311773c /src/gui/windows/logindialog.cpp
parentfc5a71f55255e7ff211efe80b33a2cd3dd89a8ea (diff)
downloadmv-5c7ea2e2dc120107145e7314119a82654280c010.tar.gz
mv-5c7ea2e2dc120107145e7314119a82654280c010.tar.bz2
mv-5c7ea2e2dc120107145e7314119a82654280c010.tar.xz
mv-5c7ea2e2dc120107145e7314119a82654280c010.zip
Add name for default server updates group.
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r--src/gui/windows/logindialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index 355f1b26b..14c662a0d 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -378,8 +378,12 @@ void LoginDialog::mergeUpdateHosts()
{
HostsGroup group;
- // TRANSLATORS: update hosts group default name
- group.name = _("default");
+ group.name = mServer->defaultHostName;
+ if (group.name.empty())
+ {
+ // TRANSLATORS: update hosts group default name
+ group.name = _("default updates");
+ }
group.hosts = mLoginData->updateHosts;
mServer->updateHosts.insert(mServer->updateHosts.begin(), group);
}