Skip to content

Infrastructure: fix crashes in undo/redo tests#8665

Merged
vadi2 merged 1 commit intodevelopmentfrom
fix-undo-redo-test-crash
Dec 21, 2025
Merged

Infrastructure: fix crashes in undo/redo tests#8665
vadi2 merged 1 commit intodevelopmentfrom
fix-undo-redo-test-crash

Conversation

@vadi2
Copy link
Copy Markdown
Member

@vadi2 vadi2 commented Dec 21, 2025

Brief overview of PR changes/additions

Fix dangling pointer crashes in undo/redo tests

Motivation for adding to Mudlet

Clean CI once again.

Other info (issues closed, discussion etc)

Use getter functions instead of raw pointers for baseItem and treeWidget in ItemTypeInfo struct. After undo/redo, slot_itemsChanged rebuilds the tree, invalidating any previously captured pointers.

Use getter functions instead of raw pointers for baseItem and
treeWidget in ItemTypeInfo struct. After undo/redo, slot_itemsChanged
rebuilds the tree, invalidating any previously captured pointers.
@vadi2 vadi2 requested a review from a team as a code owner December 21, 2025 06:39
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Dec 21, 2025

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@vadi2 vadi2 merged commit 3ca92c1 into development Dec 21, 2025
12 checks passed
@vadi2 vadi2 deleted the fix-undo-redo-test-crash branch December 21, 2025 07:56
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.

1 participant