QTfrontend/hwform.cpp
changeset 7347 88685fbb2679
parent 7280 fd707afbc3a2
parent 7313 162bc562335b
child 7353 0e55228e1303
--- a/QTfrontend/hwform.cpp	Tue Jun 26 23:29:41 2012 +0400
+++ b/QTfrontend/hwform.cpp	Fri Jul 06 12:50:18 2012 +0400
@@ -130,7 +130,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);
@@ -981,7 +981,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);