Skip to content

MNT: be more careful in Qt backend that there is actually a Figure#27245

Merged
timhoffm merged 1 commit intomatplotlib:mainfrom
tacaswell:mnt/qt_caution
Nov 1, 2023
Merged

MNT: be more careful in Qt backend that there is actually a Figure#27245
timhoffm merged 1 commit intomatplotlib:mainfrom
tacaswell:mnt/qt_caution

Conversation

@tacaswell
Copy link
Copy Markdown
Member

PR summary

In mpl_gui we are being more proactive about breaking circular references when closing a GUI window so that it is possible for a FigureCanvasQt to be in a state where the figure attribute is None.

In that case short-circuit return in the UI events.

@tacaswell tacaswell added this to the v3.9.0 milestone Nov 1, 2023
in mpl_gui we are being more proactive about breaking circular references when
closing a GUI window so that it is possible for a FigureCanvasQt to be in a
state where the figure attribute is None.

In that case short-circuit return in the UI events.
@timhoffm timhoffm merged commit b3c4a79 into matplotlib:main Nov 1, 2023
@tacaswell tacaswell deleted the mnt/qt_caution branch November 1, 2023 22:36
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.

4 participants