Merge pull request #1005 from chinhodado/patch-1

Settings: Fix saving wrong values for input configuration
master
Yuri Kunde Schlesner 2015-07-28 10:59:31 +07:00
commit ce2dd86f8f
1 changed files with 2 additions and 1 deletions

@ -66,7 +66,8 @@ void Config::ReadValues() {
void Config::SaveValues() {
qt_config->beginGroup("Controls");
for (int i = 0; i < Settings::NativeInput::NUM_INPUTS; ++i) {
qt_config->setValue(QString::fromStdString(Settings::NativeInput::Mapping[i]), Settings::NativeInput::All[i]);
qt_config->setValue(QString::fromStdString(Settings::NativeInput::Mapping[i]),
Settings::values.input_mappings[Settings::NativeInput::All[i]]);
}
qt_config->endGroup();