Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TD}Fix crash on no mdi (fix #16672) #18083

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

WandererFan
Copy link
Contributor

@WandererFan WandererFan commented Nov 22, 2024

This PR implements a fix for issue #16672.

Background
Issue #16672 is caused by use of stale pointer to switch to a closed/hidden tab in the Ui.
Similar problem affects static printAll function when it attempts to use a closed tab.

Known Issues to be solved
TechDraw: Insert view > Segfault #16672

Replaces PR #17688
Corrects PR #17488

Solution
Remove print and context-switch behaviour with dependencies on MDIViewPage since it is not always available.
MDIViewPage will continue to handle tree selection, message dispatch and widget functions.

Access printing functions through the view provider, since it is always available when the gui is up and
knows about the QGraphicsScene already.

Change context-switch behaviour to use standard show() method instead of manipulating the mdiview directly.

Add preference for forced WB switch on change of tabs.

Change exporter to not rely on MDIViewPage.
change Commandxxxx reliance on MDIViewPage.

@github-actions github-actions bot added the Mod: TechDraw Related to the TechDraw Workbench label Nov 22, 2024
@WandererFan WandererFan linked an issue Nov 22, 2024 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mod: TechDraw Related to the TechDraw Workbench
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TechDraw: Insert view > Segfault
1 participant