Suppress the crash when opening the context menu on a text field in the diagram editor#2088
Merged
iakov merged 3 commits intotrikset:masterfrom Feb 18, 2026
Merged
Conversation
9671f42 to
9937ff6
Compare
0d7386c to
2d50dfb
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.
Problem
Opening the context menu on a text field (e.g., label item) inside the diagram editor causes a crash in builds using Qt 5.15.2. The crash originates from a known bug in this Qt version, which is not present in newer releases (≥5.15.3). Unfortunately, the current Qt SDK does not provide a newer version, making a direct fix impossible at this time.
Solution
This PR suppresses the crash by preventing the context menu from being triggered on the graphical text item. Instead, users can still access and modify text properties via the property editor panel (located on the top-right side of the window). This approach eliminates the crash while preserving the ability to change properties through an alternative UI element.
Limitations
Impact
How to test