Qt: Fix double mutex lock on controller type change

Fixes #39.
This commit is contained in:
Connor McLaughlin 2020-03-02 11:05:12 +10:00
parent 34f1c644f5
commit 0c40903f74
1 changed files with 3 additions and 1 deletions

View File

@ -324,7 +324,9 @@ void QtHostInterface::OnControllerTypeChanged(u32 slot)
{ {
HostInterface::OnControllerTypeChanged(slot); HostInterface::OnControllerTypeChanged(slot);
updateInputMap(); // this assumes the settings mutex is already locked - as it comes from updateSettings().
QtSettingsInterface si(m_qsettings);
UpdateInputMap(si);
} }
void QtHostInterface::updateInputMap() void QtHostInterface::updateInputMap()