QTfrontend/gameuiconfig.cpp
changeset 7347 88685fbb2679
parent 7280 fd707afbc3a2
parent 7313 162bc562335b
child 7565 00568d3054d0
equal deleted inserted replaced
7306:3cff5c769509 7347:88685fbb2679
   372     Form->ui.pageOptions->editNetNick->setText(value("net/nick", "").toString());
   372     Form->ui.pageOptions->editNetNick->setText(value("net/nick", "").toString());
   373 }
   373 }
   374 
   374 
   375 QByteArray GameUIConfig::netPasswordHash()
   375 QByteArray GameUIConfig::netPasswordHash()
   376 {
   376 {
   377     return QCryptographicHash::hash(Form->ui.pageOptions->editNetPassword->text().toLatin1(), QCryptographicHash::Md5).toHex();
   377     return QCryptographicHash::hash(Form->ui.pageOptions->editNetPassword->text().toUtf8(), QCryptographicHash::Md5).toHex();
   378 }
   378 }
   379 
   379 
   380 int GameUIConfig::netPasswordLength()
   380 int GameUIConfig::netPasswordLength()
   381 {
   381 {
   382     return Form->ui.pageOptions->editNetPassword->text().size();
   382     return Form->ui.pageOptions->editNetPassword->text().size();