QTfrontend/gameuiconfig.cpp
changeset 8301 8bf36d368291
parent 8300 1978de6842c7
child 8325 ecd51650d5d8
equal deleted inserted replaced
8300:1978de6842c7 8301:8bf36d368291
   481 
   481 
   482 void GameUIConfig::clearPasswordHash() 
   482 void GameUIConfig::clearPasswordHash() 
   483 {
   483 {
   484     setValue("net/passwordhash", QString());
   484     setValue("net/passwordhash", QString());
   485     setValue("net/passwordlength", 0);
   485     setValue("net/passwordlength", 0);
   486     setValue("net/savepassword", false);
   486     setValue("net/savepassword", false); //changes the savepassword value to false in order to not let the user save an empty password in PAGE_SETUP
   487     reloadValues();
   487     reloadValues(); //reloads the values of PAGE_SETUP
   488 }
   488 }
   489 
   489 
   490 void GameUIConfig::setPasswordHash(const QString & passwordhash)
   490 void GameUIConfig::setPasswordHash(const QString & passwordhash)
   491 {
   491 {
   492     setValue("net/passwordhash", passwordhash);
   492     setValue("net/passwordhash", passwordhash);