Skip to content

Commit

Permalink
Merge pull request #12051 from fwcd/fix-ui-key
Browse files Browse the repository at this point in the history
WKey: Fix regression in key notation change
  • Loading branch information
daschuer committed Oct 3, 2023
2 parents 300dc0b + 16ba8bd commit 790ec2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/widget/wkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ void WKey::setCents() {
setValue(m_dOldValue);
}

void WKey::keyNotationChanged(double dValue) {
setValue(dValue);
void WKey::keyNotationChanged(double dKeyNotationValue) {
// NOTE: dKeyNotationValue is the index of the key notation type, NOT the
// key itself, so we intentionally set the old value again to update the UI.
setValue(m_dOldValue);
}

0 comments on commit 790ec2a

Please sign in to comment.