mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix crash when disconnecting controller which isn't last in list
This commit is contained in:
parent
0e83c992c3
commit
50735567c9
|
@ -54,6 +54,7 @@ void ControllerGlobalSettingsWidget::removeDeviceFromList(const QString& identif
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
delete m_ui.deviceList->takeItem(i);
|
delete m_ui.deviceList->takeItem(i);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue