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

Fix crash on Linux when switching between tabs in printer config #6437

Merged
merged 2 commits into from
Aug 18, 2024

Conversation

Noisyfox
Copy link
Collaborator

@Noisyfox Noisyfox commented Aug 12, 2024

This fixes #6261.

…ver#6261).

`getWindow()` must return the control itself, not its child control; otherwise the child control will be destroyed twice when the tab container is destroyed.
@Noisyfox Noisyfox force-pushed the bugfox/linux-crash branch from 41fca66 to d126e1c Compare August 13, 2024 01:37
@@ -506,6 +506,7 @@ class PointCtrl : public Field {
TextInput* x_input{nullptr};
TextInput* y_input{nullptr};

wxWindow* window{nullptr};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one

Copy link
Owner

@SoftFever SoftFever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good
Thank you

@SoftFever SoftFever merged commit 4dd7d79 into SoftFever:main Aug 18, 2024
15 checks passed
@Noisyfox Noisyfox deleted the bugfox/linux-crash branch August 18, 2024 10:25
@Ro3Deee
Copy link

Ro3Deee commented Aug 19, 2024

Thank you

henrivdr pushed a commit to henrivdr/OrcaSlicer that referenced this pull request Aug 27, 2024
…tFever#6437)

* Fix crash due to the wrong window get returned in `PointCtrl` (SoftFever#6261).
`getWindow()` must return the control itself, not its child control; otherwise the child control will be destroyed twice when the tab container is destroyed.

* Fix another crash on Linux caused by unused undo button
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.

Frequent crashes when switching tabs in preset windows
4 participants