FIX: Correct deletion of matplotlib exporter window object (#868)

E.g. when opening the Matplotlib exporter multiple times, and one closes one instance, Python crashes.
This is caused by the Matplotlib QMainWindow listening to the closeEvent and deleting the only reference of
the window before it is closed properly.
This commit is contained in:
2xB 2019-05-24 06:35:01 +02:00 committed by Ogi Moore
parent 8420fe984a
commit e2b01ccf74

View File

@ -124,5 +124,4 @@ class MatplotlibWindow(QtGui.QMainWindow):
def closeEvent(self, ev):
MatplotlibExporter.windows.remove(self)
self.deleteLater()