equal
deleted
inserted
replaced
128 #ifdef USE_XFIRE |
128 #ifdef USE_XFIRE |
129 xfire_init(); |
129 xfire_init(); |
130 #endif |
130 #endif |
131 gameSettings = new QSettings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat); |
131 gameSettings = new QSettings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat); |
132 frontendEffects = gameSettings->value("frontend/effects", true).toBool(); |
132 frontendEffects = gameSettings->value("frontend/effects", true).toBool(); |
133 playerHash = QString(QCryptographicHash::hash(gameSettings->value("net/nick","").toString().toLatin1(), QCryptographicHash::Md5).toHex()); |
133 playerHash = QString(QCryptographicHash::hash(gameSettings->value("net/nick","").toString().toUtf8(), QCryptographicHash::Md5).toHex()); |
134 |
134 |
135 this->setStyleSheet(styleSheet); |
135 this->setStyleSheet(styleSheet); |
136 ui.setupUi(this); |
136 ui.setupUi(this); |
137 setMinimumSize(760, 580); |
137 setMinimumSize(760, 580); |
138 //setFocusPolicy(Qt::StrongFocus); |
138 //setFocusPolicy(Qt::StrongFocus); |
979 delete hpd; |
979 delete hpd; |
980 return; |
980 return; |
981 } |
981 } |
982 |
982 |
983 QString password = hpd->lePassword->text(); |
983 QString password = hpd->lePassword->text(); |
984 hash = QCryptographicHash::hash(password.toLatin1(), QCryptographicHash::Md5).toHex(); |
984 hash = QCryptographicHash::hash(password.toUtf8(), QCryptographicHash::Md5).toHex(); |
985 |
985 |
986 bool save = hpd->cbSave->isChecked(); |
986 bool save = hpd->cbSave->isChecked(); |
987 config->setValue("net/savepassword", save); |
987 config->setValue("net/savepassword", save); |
988 if (save) // user wants to save password |
988 if (save) // user wants to save password |
989 { |
989 { |