Skip to content

fix(presets): include first enum option in exact lookup - #262

Merged
Ivan-VHS merged 3 commits into
mainfrom
fix/preset-enum-first-item-20261202
Dec 2, 2026
Merged

Ivan-VHS merged 3 commits into
mainfrom
fix/preset-enum-first-item-20261202

Conversation

@Ivan-VHS

@Ivan-VHS Ivan-VHS commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove the misplaced Qt::CaseSensitive argument from QStringList::indexOf; it was being interpreted as the starting index, so lookup skipped list entry zero.
  • Add a regression test that round-trips the first declared value for all five preset enum fields.
  • Correct the test's newline diagnostics so failures print a real newline instead of a multi-character integer.

Impact

This fixes valid presets using the first value in any enum list, including Full Loop, Natural Minor, Boom Bap, Clean, and Keys.

Validation

  • Windows/Linux CI will compile and run ventusample-preset-store on this branch.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-02T09:00:58.665613Z
We couldn’t complete this review. Comment @codex review to try again.
867cbb3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Ivan-VHS
Ivan-VHS merged commit c8eb6a8 into main Dec 2, 2026
@Ivan-VHS
Ivan-VHS deleted the fix/preset-enum-first-item-20261202 branch December 2, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant