Skip to content

Fix BQT_DISABLE_CLOSE_DIALOGUE#130

Merged
hannesdelbeke merged 8 commits intotechartorg:masterfrom
metalbass:fix-context-override
Dec 15, 2025
Merged

Fix BQT_DISABLE_CLOSE_DIALOGUE#130
hannesdelbeke merged 8 commits intotechartorg:masterfrom
metalbass:fix-context-override

Conversation

@metalbass
Copy link
Copy Markdown
Contributor

Fix BQT_DISABLE_CLOSE_DIALOGUE
From Blender 4.0 onwards, overriding context directly on methods is disabled, and bpy.context.temp_override() is to be used instead.

The error was:

ValueError: Error calling Python override of QApplication::notify(): 1-2 args execution context is supported

metalbass and others added 2 commits June 8, 2025 12:23
From Blender 4.0 onwards, overriding context directly on methods is disabled, and `bpy.context.temp_override()` is to be used instead.

The error was:

    ValueError: Error calling Python override of QApplication::notify(): 1-2 args execution context is supported
@hannesdelbeke
Copy link
Copy Markdown
Collaborator

simplified code,
since we change minimum supported blender version to 4.2 based on discussion in #132

@hannesdelbeke
Copy link
Copy Markdown
Collaborator

tested, seems we don't need context override anymore.
another PR fixed this, closing for now

@hannesdelbeke
Copy link
Copy Markdown
Collaborator

master fixed the error preventing close
but save dialog doesnt trigger on dirty scene anymore, reopen to fix

@hannesdelbeke hannesdelbeke merged commit ede5c2e into techartorg:master Dec 15, 2025
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.

2 participants