Repository navigation
frontend: Edit > Undo stays disabled on an empty undo stack (#2222) - #2241
Merged
Merged
Conversation
zackees
enabled auto-merge
October 24, 2026 21:22
On the Windows Tier 2 runner the offscreen platform is not deployed and the test hung to its 120 s timeout, as test_properties_undo_coalesce would.
zackees
force-pushed
the
fix/undo-empty-enable
branch
from
October 24, 2026 22:58
6c4e783 to
4a7277b
Compare
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.
Fixes #2222.
test_undo_stack_enablebuilds the realundo_stackagainst stand-ins for the OBSBasic.ui header and the precompiled header (undo-stack-stubs/) and runs on Qt's offscreen platform. Local Tier 2 on the RED commit failed at :43 (disable/enable on an empty stack) and :70 (a disabled span after the last entry was undone). The same run also failedtest_ws_remove_input, which this change doesn't touch.enable_internal()enables Undo only whenundo_itemsis non-empty, as it already did for Redo. When the stack has entries, Undo and Redo come back the same as before (asserted).