Skip to content

Fix learning with "No Mapping" selected#14829

Merged
ronso0 merged 2 commits into
mixxxdj:2.5from
daschuer:ronso0-midi-learn-fix
May 22, 2025
Merged

Fix learning with "No Mapping" selected#14829
ronso0 merged 2 commits into
mixxxdj:2.5from
daschuer:ronso0-midi-learn-fix

Conversation

@daschuer
Copy link
Copy Markdown
Member

This fixes a regression since #11300 slipped through beta phase.

@github-actions github-actions Bot added controller mappings library engine rekordbox controller backend developer experience Issues, bugs and PRs related to the development process, development environment & developer docs labels May 22, 2025
@daschuer daschuer changed the base branch from main to 2.5 May 22, 2025 06:37
@daschuer daschuer added this to the 2.5.2 milestone May 22, 2025
@daschuer daschuer added regression and removed controller mappings library engine rekordbox developer experience Issues, bugs and PRs related to the development process, development environment & developer docs labels May 22, 2025
Comment on lines +514 to +519
// Note: this is called by closeDlg() when MIDI learning starts
// "No Mapping" is selected but we have a mapping for learning
if (m_ui.comboBoxMapping->currentIndex() > kNoMappingIndex || !m_pMapping) {
// Force updating the controller settings
slotMappingSelected(m_ui.comboBoxMapping->currentIndex());
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!
I was puzzled what was calling showMapping() and that's it.

Copy link
Copy Markdown
Member

@ronso0 ronso0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and works good, thank you!

@ronso0
Copy link
Copy Markdown
Member

ronso0 commented May 22, 2025

pre-commit is not run for some reason, but it passes locally 🤷

@ronso0 ronso0 merged commit 5f24f30 into mixxxdj:2.5 May 22, 2025
3 checks passed
@daschuer daschuer deleted the ronso0-midi-learn-fix branch June 27, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants