Merge pull request #2230 from ts-korhonen/fix-joystick-dialog

qt: Another joystick dialog fix
This commit is contained in:
Miran Grča
2022-03-15 17:53:12 +01:00
committed by GitHub

View File

@@ -82,7 +82,9 @@ int JoystickConfiguration::selectedPov(int pov) {
void JoystickConfiguration::on_comboBoxDevice_currentIndexChanged(int index) { void JoystickConfiguration::on_comboBoxDevice_currentIndexChanged(int index) {
for (auto w : widgets) { for (auto w : widgets) {
ui->ct->removeWidget(w); ui->ct->removeWidget(w);
w->deleteLater();
} }
widgets.clear();
if (index == 0) { if (index == 0) {
return; return;