Skip to content

Commit

Permalink
fix: segfault when restoring default controller settings
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Apr 6, 2024
1 parent 3546e22 commit 492ce2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/legacycontrollersettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ QWidget* LegacyControllerBooleanSetting::buildInputWidget(QWidget* pParent) {
pCheckBox->setToolTip(QString("<p>%1</p>").arg(description()));
}

connect(this, &AbstractLegacyControllerSetting::valueReset, pCheckBox, [this, &pCheckBox]() {
connect(this, &AbstractLegacyControllerSetting::valueReset, pCheckBox, [this, pCheckBox]() {
pCheckBox->setCheckState(m_editedValue ? Qt::Checked : Qt::Unchecked);
});

Expand Down Expand Up @@ -260,7 +260,7 @@ QWidget* LegacyControllerEnumSetting::buildInputWidget(QWidget* pParent) {
}
pComboBox->setCurrentIndex(static_cast<int>(m_editedValue));

connect(this, &AbstractLegacyControllerSetting::valueReset, pComboBox, [this, &pComboBox]() {
connect(this, &AbstractLegacyControllerSetting::valueReset, pComboBox, [this, pComboBox]() {
pComboBox->setCurrentIndex(static_cast<int>(m_editedValue));
});

Expand Down

0 comments on commit 492ce2a

Please sign in to comment.