Skip to content
Snippets Groups Projects
Commit 45a10ae3 authored by Dimitar Tasev's avatar Dimitar Tasev
Browse files

Add missed global figure manager destroy call, re #24537

parent 21f08f7a
No related branches found
No related tags found
No related merge requests found
......@@ -259,6 +259,15 @@ class FigureManagerWorkbench(FigureManagerBase, QObject):
del self._ads_observer
for id in self._cids:
self.canvas.mpl_disconnect(id)
self.window.close()
try:
Gcf.destroy(self.num)
except AttributeError:
pass
# It seems that when the python session is killed,
# Gcf can get destroyed before the Gcf.destroy
# line is run, leading to a useless AttributeError.
def grid_toggle(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment