Skip to content

Improve AfterEffects dialog parent handling on MacOS#65

Open
oesponda wants to merge 1 commit into
shotgunsoftware:masterfrom
mightyanimation:fix-macos-dialog-parenting
Open

Improve AfterEffects dialog parent handling on MacOS#65
oesponda wants to merge 1 commit into
shotgunsoftware:masterfrom
mightyanimation:fix-macos-dialog-parenting

Conversation

@oesponda
Copy link
Copy Markdown

@oesponda oesponda commented May 6, 2026

Clear stale dialog parent on engine shutdown and make get_dialog_parent more robust across platforms. On shutdown _DIALOG_PARENT is reset to avoid stale references. get_dialog_parent now imports QtCore, returns None on non-Windows (avoiding parenting to transient macOS windows), creates a persistent proxy window on Windows, and validates the cached parent by calling windowTitle() to detect deleted C++ objects and recreate the proxy if needed. Added debug logging to aid troubleshooting and prevent "Internal C++ object already deleted" errors.

Clear stale dialog parent on engine shutdown and make get_dialog_parent more robust across platforms. On shutdown _DIALOG_PARENT is reset to avoid stale references. get_dialog_parent now imports QtCore, returns None on non-Windows (avoiding parenting to transient macOS windows), creates a persistent proxy window on Windows, and validates the cached parent by calling windowTitle() to detect deleted C++ objects and recreate the proxy if needed. Added debug logging to aid troubleshooting and prevent "Internal C++ object already deleted" errors.
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