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

Store / load states only if the Qt version matches #557

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

ChristianFeldmann
Copy link
Member

@ChristianFeldmann ChristianFeldmann commented Jan 10, 2024

We are using saveState / restoreState to save the current window layout when YUView is closed. This allows us to keep the layout of the Main Window consistent when YUView is relaunched. However, it looks like restoring a state from a different Qt Version can crash YUView on macos. So we have to store and load the states only if the Qt version between store and reload are identical. Fortunately Qt has a 'version' parameter in the store / reload functions for this.

Issue #543

@ChristianFeldmann ChristianFeldmann merged commit e9240e7 into develop Jan 10, 2024
8 checks passed
@ChristianFeldmann ChristianFeldmann deleted the Issue543-RandomCrashOnMacOs branch January 10, 2024 21:35
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