QTfrontend/gameuiconfig.cpp
changeset 7313 162bc562335b
parent 7153 f0d055645ab2
child 7347 88685fbb2679
child 7541 e51b11349637
equal deleted inserted replaced
7311:06b31a1b333c 7313:162bc562335b
   331     Form->ui.pageOptions->editNetNick->setText(value("net/nick", "").toString());
   331     Form->ui.pageOptions->editNetNick->setText(value("net/nick", "").toString());
   332 }
   332 }
   333 
   333 
   334 QByteArray GameUIConfig::netPasswordHash()
   334 QByteArray GameUIConfig::netPasswordHash()
   335 {
   335 {
   336     return QCryptographicHash::hash(Form->ui.pageOptions->editNetPassword->text().toLatin1(), QCryptographicHash::Md5).toHex();
   336     return QCryptographicHash::hash(Form->ui.pageOptions->editNetPassword->text().toUtf8(), QCryptographicHash::Md5).toHex();
   337 }
   337 }
   338 
   338 
   339 int GameUIConfig::netPasswordLength()
   339 int GameUIConfig::netPasswordLength()
   340 {
   340 {
   341     return Form->ui.pageOptions->editNetPassword->text().size();
   341     return Form->ui.pageOptions->editNetPassword->text().size();