Buffers selected event types delivered before the app installs its owns consumers#155
Conversation
|
Warning Review limit reached
Next review available in: 25 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughAdds a Qt-only 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@framework/ui/internal/earlyeventsbuffer.cpp`:
- Around line 52-60: Update EarlyEventsBuffer::eventFilter to store the result
of event->clone() and verify it is non-null before adding it to m_events; only
return true when a valid clone was buffered, and otherwise fall through to
QObject::eventFilter(watched, event).
In `@framework/ui/internal/guiapplication.cpp`:
- Around line 54-63: Update GuiApplication::takeEarlyEvents so consuming one
event type does not unconditionally remove m_earlyEventsBuffer from qApp while
other configured early event types may still need buffering; retain the event
filter until all expected types have been explicitly requested, then remove it.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: c10ebfe3-c911-44ba-abbd-1d2e67c3133d
📒 Files selected for processing (6)
framework/global/iapplication.hframework/ui/CMakeLists.txtframework/ui/internal/earlyeventsbuffer.cppframework/ui/internal/earlyeventsbuffer.hframework/ui/internal/guiapplication.cppframework/ui/internal/guiapplication.h
aadbd1f to
80a96fa
Compare
On macOS the launch url starts the app and a QFileOpenEvent arrives during an early startup before the app install an event filter to handle this events.
This change buffers selected event types to be retrieved later.
Resolves: audacity/audacity#10966
Build configuration
audacity: audacity/audacity/master
audacity platforms: linux_x64
musescore: musescore/MuseScore/main
musescore platforms: linux_x64