Skip to content

Commit

Permalink
fixup! keylock engine: use typesafe values also in DlgPrefSound::slot…
Browse files Browse the repository at this point in the history
…ResetToDefaults (#28)
  • Loading branch information
Swiftb0y authored Aug 4, 2022
1 parent eb9a54c commit e4c2530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/preferences/dialog/dlgprefsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,12 +693,12 @@ void DlgPrefSound::slotResetToDefaults() {
loadSettings(newConfig);

const auto keylockEngine = EngineBuffer::defaultKeylockEngine();
const int index = keylockComboBox->findData(QVariant::fromValue(keyLockEngine));
const int index = keylockComboBox->findData(QVariant::fromValue(keylockEngine));
DEBUG_ASSERT(index >= 0);
if (index >= 0) {
keylockComboBox->setCurrentIndex(index);
}
m_pKeylockEngine->set(static_cast<double>(keyLockEngine));
m_pKeylockEngine->set(static_cast<double>(keylockEngine));

masterMixComboBox->setCurrentIndex(1);
m_pMasterEnabled->set(1.0);
Expand Down

0 comments on commit e4c2530

Please sign in to comment.