IENT / YUView

The Free and Open Source Cross Platform YUV Viewer with an advanced analytics toolset
http://ient.github.io/YUView
Other
1.78k stars 353 forks source link

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

Closed ChristianFeldmann closed 5 months ago

ChristianFeldmann commented 5 months ago

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 https://github.com/IENT/YUView/issues/543