Changed: Give priority to login specified as argument

This commit is contained in:
kervala 2016-04-06 09:36:06 +02:00
parent f93dfcfefe
commit 130229cbb7

View file

@ -779,7 +779,8 @@ void initLoginScreen()
ClientApp = ClientCfg.ConfigFile.getVar("Application").asString(0); ClientApp = ClientCfg.ConfigFile.getVar("Application").asString(0);
string l = ClientCfg.LastLogin; // give priority to login specified as argument
string l = !LoginLogin.empty() ? LoginLogin:ClientCfg.LastLogin;
if(!l.empty()) if(!l.empty())
{ {