equal
deleted
inserted
replaced
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(); |