Qt: Fix clearing analog shortcuts

This commit is contained in:
Jeffrey Pfau 2015-05-19 20:04:20 -07:00
parent 3ace420e3f
commit c6c57273b5
1 changed files with 1 additions and 1 deletions

View File

@ -228,8 +228,8 @@ void ShortcutController::updateButton(const QModelIndex& index, int button) {
if (oldButton >= 0) {
m_buttons.take(oldButton);
}
updateAxis(index, -1, GamepadAxisEvent::NEUTRAL);
if (button >= 0) {
updateAxis(index, -1, GamepadAxisEvent::NEUTRAL);
m_buttons[button] = item;
}
if (m_config) {