Merge pull request #2230 from ts-korhonen/fix-joystick-dialog
qt: Another joystick dialog fix
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user