Quick fix for #1430

This commit is contained in:
blitzmann
2018-02-27 00:23:29 -05:00
parent cbe1ce5bcd
commit 551ffe9ed3

View File

@@ -232,6 +232,12 @@ class GraphFrame(wx.Frame):
if event is not None:
event.Skip()
# todo: FIX THIS, see #1430. draw() is not being unbound properly when the window closes, this is an easy fix,
# but not a proper solution
if not self:
pyfalog.warning("GraphFrame handled event, however GraphFrame no longer exists. Ignoring event")
return
values = self.getValues()
view = self.getView()
self.subplot.clear()