summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-29 22:00:47 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-29 22:00:47 +0300
commit8158669fde4f4a32191d6b052586e7cf0889ab7e (patch)
tree0f2e4df6f05990aef02589b0d0c8434944eef562
parent6ed12d65e030bd2deb92b037f4a831e9ed17f3e0 (diff)
downloadmanaplus-8158669fde4f4a32191d6b052586e7cf0889ab7e.tar.gz
manaplus-8158669fde4f4a32191d6b052586e7cf0889ab7e.tar.bz2
manaplus-8158669fde4f4a32191d6b052586e7cf0889ab7e.tar.xz
manaplus-8158669fde4f4a32191d6b052586e7cf0889ab7e.zip
Remember by default last account name in login dialog.
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 385af99ad..60af41ed3 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -541,7 +541,7 @@ Client::Client(const Options &options):
loginData.username = mOptions.username;
loginData.password = mOptions.password;
- loginData.remember = serverConfig.getValue("remember", 0);
+ loginData.remember = serverConfig.getValue("remember", true);
loginData.registerLogin = false;
if (mCurrentServer.hostname.empty())
@@ -787,7 +787,7 @@ int Client::exec()
else
loginData.username = mOptions.username;
- loginData.remember = serverConfig.getValue("remember", 0);
+ loginData.remember = serverConfig.getValue("remember", true);
Net::connectToServer(mCurrentServer);