Skip to content

Commit

Permalink
Fixed combination button lighting when a crescendo was in the Overrid…
Browse files Browse the repository at this point in the history
…e=Off mode #1935
  • Loading branch information
oleg68 committed Sep 17, 2024
1 parent 6cc53e2 commit bd80495
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Fixed combination button lighting when a crescendo was in the Override=Off mode https://github.com/GrandOrgue/grandorgue/issues/1935
# 3.15.1 (2024-09-03)
- Fixed saving of Settings->Paths https://github.com/GrandOrgue/grandorgue/issues/1907
- Fixed crash on releasing a key of any Binauralpipes organ https://github.com/GrandOrgue/grandorgue/issues/1986
Expand Down
6 changes: 3 additions & 3 deletions src/grandorgue/combinations/GOSetter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,8 @@ void GOSetter::PushGeneral(
= GetCrescendoAddSet(elementSet);

NotifyCmbPushed(cmb.Push(m_state, pExtraSet));
if (!pExtraSet) { // Otherwise the crescendo in add mode:
// not to switch off combination buttons
if (pButtonToLight || !pExtraSet) { // Otherwise the crescendo in add mode:
// not to switch off combination buttons
UpdateAllSetsButtonsLight(pButtonToLight, -1);
}
}
Expand All @@ -1042,7 +1042,7 @@ void GOSetter::PushDivisional(
= GetCrescendoAddSet(elementSet);

NotifyCmbPushed(cmb.Push(m_state, pExtraSet));
if (!pExtraSet)
if (pButtonToLight || !pExtraSet)
UpdateAllSetsButtonsLight(pButtonToLight, cmbManual);
}
}
Expand Down

0 comments on commit bd80495

Please sign in to comment.