QTfrontend/hwform.cpp
changeset 7313 162bc562335b
parent 7122 fa2d09868ac6
child 7347 88685fbb2679
child 7411 efc75c2d3be9
child 7551 c212247065e3
--- a/QTfrontend/hwform.cpp	Wed Jun 27 13:39:46 2012 -0400
+++ b/QTfrontend/hwform.cpp	Wed Jun 27 13:47:42 2012 -0400
@@ -128,7 +128,7 @@
 #endif
     gameSettings = new QSettings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat);
     frontendEffects = gameSettings->value("frontend/effects", true).toBool();
-    playerHash = QString(QCryptographicHash::hash(gameSettings->value("net/nick","").toString().toLatin1(), QCryptographicHash::Md5).toHex());
+    playerHash = QString(QCryptographicHash::hash(gameSettings->value("net/nick","").toString().toUtf8(), QCryptographicHash::Md5).toHex());
 
     this->setStyleSheet(styleSheet);
     ui.setupUi(this);
@@ -968,7 +968,7 @@
         }
 
         QString password = hpd->lePassword->text();
-        hash = QCryptographicHash::hash(password.toLatin1(), QCryptographicHash::Md5).toHex();
+        hash = QCryptographicHash::hash(password.toUtf8(), QCryptographicHash::Md5).toHex();
 
         bool save = hpd->cbSave->isChecked();
         config->setValue("net/savepassword", save);