Skip to content

Fix #33536: reject close during checkCloudIsAvailable#33609

Merged
RomanPudashkin merged 1 commit into
musescore:mainfrom
RomanPudashkin:reject_close_events_during_checkCloudIsAvailable
May 28, 2026
Merged

Fix #33536: reject close during checkCloudIsAvailable#33609
RomanPudashkin merged 1 commit into
musescore:mainfrom
RomanPudashkin:reject_close_events_during_checkCloudIsAvailable

Conversation

@RomanPudashkin
Copy link
Copy Markdown
Contributor

Ports: #33543
Resolves: #33536
Depends on: musescore/muse_framework#58

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 28, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 51ef7f86-375e-492a-8374-e8c26679ae84

📥 Commits

Reviewing files that changed from the base of the PR and between 68627a3 and b775a92.

📒 Files selected for processing (1)
  • src/project/internal/projectactionscontroller.cpp

📝 Walkthrough

Walkthrough

This PR adds a safety guard to ProjectActionsController::closeOpenedProject that prevents the project from being closed while a save or cloud upload operation is in progress. The method now checks m_isProjectSaving and m_isProjectUploading flags and returns false early if either is active, ensuring these critical background operations complete before allowing project closure.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive The PR description provides linked issue and PR references, but lacks the detailed checklist items and motivation explanation required by the template. Complete the PR description template by filling in the checklist items (CLA signature, title confirmation, commit messages, testing, code guidelines compliance) and adding explicit motivation for the changes.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title references issue #33536 and describes the key change: rejecting close events during cloud availability checks, which directly addresses the crash/freeze issue.
Linked Issues check ✅ Passed The code change prevents project closure during save/upload operations, directly addressing issue #33536's freeze/crash when network is lost during cloud operations.
Out of Scope Changes check ✅ Passed The 4-line change adds an early return guard condition to reject close events during cloud operations, which is within scope and directly addresses the reported freeze/crash issue.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@RomanPudashkin RomanPudashkin merged commit 33b9d05 into musescore:main May 28, 2026
15 checks passed
@RomanPudashkin RomanPudashkin deleted the reject_close_events_during_checkCloudIsAvailable branch May 28, 2026 10:45
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.

Possible freeze/crash attempting to save to cloud if network connection has been lost while score is open

2 participants