mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix crash on clearing controller bindings
This commit is contained in:
parent
0f24048cd5
commit
324eb4d4bf
|
@ -196,9 +196,11 @@ void ControllerBindingWidget::onClearBindingsClicked()
|
|||
}
|
||||
|
||||
if (m_dialog->isEditingGlobalSettings())
|
||||
{
|
||||
{
|
||||
auto lock = Host::GetSettingsLock();
|
||||
PAD::ClearPortBindings(*Host::Internal::GetBaseSettingsLayer(), m_port_number);
|
||||
}
|
||||
Host::CommitBaseSettingChanges();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue