Skip to content

Commit

Permalink
Fixed bug preventing removal of last switch in available switches for…
Browse files Browse the repository at this point in the history
… divisional coupler. Fixed similar bug that prevented removal of last manual in available manuals for divisional coupler.
  • Loading branch information
larspalo committed Jun 15, 2024
1 parent 9ce4c12 commit cbb7d4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Bug that prevented removal of last switch from list of available switches for stops, couplers and tremulants.
- Bug that prevented removal of last switch from list of available switches for stops, couplers, tremulants and divisional couplers.
- Bug that prevented removal of last rank from list of available ranks for stops.
- Bug that prevented removal of last manual from list of available manuals for divisional couplers.
- Updating windchest wxChoice size for rank (and stop internal rank) to expand as needed.

## [0.12.2] - 2024-05-22
Expand Down
6 changes: 6 additions & 0 deletions src/DivisionalCouplerPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ void DivisionalCouplerPanel::setDivisionalCoupler(DivisionalCoupler *divCplr) {
}
m_availableSwitches->Clear();
m_availableSwitches->InsertItems(organSwitches, 0);
} else {
if (m_availableSwitches->GetCount())
m_availableSwitches->Clear();
}
UpdateReferencedSwitches();
m_addReferencedSwitch->Disable();
Expand All @@ -400,6 +403,9 @@ void DivisionalCouplerPanel::setDivisionalCoupler(DivisionalCoupler *divCplr) {
}
m_availableManuals->Clear();
m_availableManuals->InsertItems(organManuals, 0);
} else {
if (m_availableManuals->GetCount())
m_availableManuals->Clear();
}
UpdateReferencedManuals();
m_addReferencedManual->Disable();
Expand Down

0 comments on commit cbb7d4c

Please sign in to comment.