You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check if the shortcut sequence is set before using it - #12595
Reviewing files that changed from the base of the PR and between 7c4aff1 and 94d114c.
Files selected for processing: 1
src/projectscene/internal/tapholdshortcut.cpp
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Walkthrough
TapHoldShortcut::matchKeyEvent now returns false when a shortcut has no sequences. It also checks shortcut validity before checking whether the shortcut context is allowed.
The reported empty-shortcut crash path is guarded, with no remaining merge-blocking risk identified.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: checking that a shortcut sequence exists before it is used.
Description check
The description identifies the resolved issue and completes the repository checklist. It does not include the requested short description of the changes or the motivation for the fix.
Linked Issues check
Issue #12368 requires the application to avoid a crash when a single-button shortcut is used after the Split tool shortcut is cleared. In TapHoldShortcut::matchKeyEvent, the PR now returns false w…
Out of Scope Changes check
The PR changes only src/projectscene/internal/tapholdshortcut.cpp. The change guards empty shortcut sequences in the shortcut event-matching path. This directly supports issue #12368 and introduces …
Full details: Linked Issues check
Explanation
Issue #12368 requires the application to avoid a crash when a single-button shortcut is used after the Split tool shortcut is cleared. In TapHoldShortcut::matchKeyEvent, the PR now returns false when m_shortcut.sequences is empty before it accesses front(). This prevents the cleared-shortcut access that caused the crash. The change also preserves the existing validity and context checks.
Full details: Out of Scope Changes check
Explanation
The PR changes only src/projectscene/internal/tapholdshortcut.cpp. The change guards empty shortcut sequences in the shortcut event-matching path. This directly supports issue #12368 and introduces no unrelated behavior or files.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #12368
Recommended: