# HG changeset patch # User Ondrej Skopek # Date 1355325452 -3600 # Node ID 6ef114ea22988906cfda11adfcf9587011a0ffc7 # Parent 0e5782b0dd54410c6201f35d5f971c725c288727 fixed minor problem with saving hash diff -r 0e5782b0dd54 -r 6ef114ea2298 QTfrontend/gameuiconfig.cpp --- a/QTfrontend/gameuiconfig.cpp Wed Dec 12 15:57:01 2012 +0100 +++ b/QTfrontend/gameuiconfig.cpp Wed Dec 12 16:17:32 2012 +0100 @@ -491,7 +491,7 @@ { setValue("net/passwordhash", passwordhash); setValue("net/passwordlength", passwordhash.size()); - netPasswordLength(); + setNetPasswordLength(passwordhash.size()); } QString GameUIConfig::passwordHash() diff -r 0e5782b0dd54 -r 6ef114ea2298 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Wed Dec 12 15:57:01 2012 +0100 +++ b/QTfrontend/hwform.cpp Wed Dec 12 16:17:32 2012 +0100 @@ -1057,7 +1057,7 @@ } //Remove temporary hash from config - config->clearPasswordHash(); + config->clearTempHash(); } void HWForm::NetNickRegistered(const QString & nick) @@ -1065,11 +1065,9 @@ //Get hashes QString hash = config->passwordHash(); QString temphash = config->tempHash(); - qDebug("NETNICKREGISTERED"); + if (hash.isEmpty()) { - qDebug("NNR - HASH EMPTY"); if (temphash.isEmpty()) { //If the user enters a registered nick with no password - qDebug("NNR - TEMPHASH EMTPY"); QString suppliedpass; while (suppliedpass.isEmpty()) { QInputDialog nickRegedDialog(this); @@ -1385,7 +1383,6 @@ if (save) // user wants to save password { config->setPasswordHash(temphash); - config->setNetPasswordLength(password.size()); } } else {