Added MacOS specific logic to overcome missing embedded window calls. #484
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.
in #480 it was reported that on MacOS, the Render workbench was crashing when attempting to open the embedded window for downloading materials.
In QT versions below 6.0, there is only buggy or sporadic support for
QWindow.fromWinId, the method that is used to attach embedded windows to the main window context. This causes a crash whenever the workbench attempts to create an embedded window.This PR provides a workaround patch that displays a message on Mac OSX letting users know that the embedding is not support, and then exits. This allows the window to open as a separate window, rather than an embedded window.
This should fix #480 until Freecad is upgraded to a version that supports QWindow.fromWinId on MacOSX, or else that change is backported to QT 5.xx.