Update src/citra_qt/configuration/config.cpp

Co-Authored-By: valentinvanelslande <valentinvanelslandeacnl@gmail.com>
This commit is contained in:
Pengfei Zhu 2018-12-29 08:14:37 -05:00 committed by GitHub
parent ec7a3fb72c
commit 5a4c7c32d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ void Config::ReadValues() {
QString::fromStdString(default_param)) QString::fromStdString(default_param))
.toString() .toString()
.toStdString(); .toStdString();
if (profile.buttons.empty()) if (profile.buttons[i].empty())
profile.buttons[i] = default_param; profile.buttons[i] = default_param;
} }
for (int i = 0; i < Settings::NativeAnalog::NumAnalogs; ++i) { for (int i = 0; i < Settings::NativeAnalog::NumAnalogs; ++i) {