Use UTF-8 strings for the password

This commit is contained in:
Palakis
2017-03-01 15:42:38 +01:00
parent 629880cd58
commit 9eaa9a98ee

View File

@ -80,7 +80,7 @@ void SettingsDialog::FormAccepted()
{ {
if (ui->password->text() != CHANGE_ME) if (ui->password->text() != CHANGE_ME)
{ {
QByteArray pwd = ui->password->text().toLocal8Bit(); QByteArray pwd = ui->password->text().toUtf8();
const char *new_password = pwd; const char *new_password = pwd;
conf->SetPassword(new_password); conf->SetPassword(new_password);