Repository navigation
frontend: Adjust shutdown logic more - #13347
Merged
Merged
Conversation
Warchamp7
force-pushed
the
more-shutdown-things
branch
from
April 21, 2026 01:21
1c37d83 to
50e4b6f
Compare
Warchamp7
force-pushed
the
more-shutdown-things
branch
from
May 28, 2026 03:49
50e4b6f to
9617afd
Compare
Contributor
|
This solves an issue I was having when attempting to close OBS while it's minimized to the system tray. With the main build, it would always crash. Test steps:
It's at that point that it crashes with the main build, but with this change it works correctly. The same applies for starting with From what I can tell, it should close this issue: #10933 |
PatTheMav
reviewed
May 29, 2026
Warchamp7
force-pushed
the
more-shutdown-things
branch
from
June 6, 2026 05:16
9617afd to
c62ae22
Compare
PatTheMav
approved these changes
Jun 6, 2026
PatTheMav
left a comment
Member
There was a problem hiding this comment.
Seems fine and should have no impact on macOS.
RytoEX
approved these changes
Jun 8, 2026
7 tasks done
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Removes our connections to Qt's aboutToQuit signal as well better handling the deferred close to the main window for WM_QUERYENDSESSION.
Motivation and Context
Trying to fix shutdown crashes more. The aboutToQuit connections were set up early in my original shutdown logic PR and now that we have a nativeEventFilter for the Windows MSGs (Which is exactly the same thing aboutToQuit gets fired from), it no longer appears to be necessary (And indeed was causing some issues on macOS) and may only be causing problems in some cases.
We're still seeing some situations where OBSBasic is getting destroyed while already shutting down that may be attributable to this.
How Has This Been Tested?
Shut down OBS various times, including with/without outputs active, and tried logging out in both scenarios.
Types of changes
Checklist: