Skip to content
Snippets Groups Projects
Commit ef803646 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Fix attempt to detach deleted view config panel from AUI manager (which

was causing exceptions and segfault on exit).
parent 45778a9b
No related branches found
No related tags found
No related merge requests found
...@@ -170,6 +170,14 @@ class FSLViewFrame(wx.Frame): ...@@ -170,6 +170,14 @@ class FSLViewFrame(wx.Frame):
def onViewPanelDestroy(ev): def onViewPanelDestroy(ev):
ev.Skip() ev.Skip()
# if the config panel has already been closed, it
# will have been replaced with a python wrapper
# around a deleted C++ object. When converted to
# boolean, this wrapper will evaluate to False.
if not confPanel:
return
self._auimgr.DetachPane(confPanel) self._auimgr.DetachPane(confPanel)
self._auimgr.Update() self._auimgr.Update()
confPanel.Destroy() confPanel.Destroy()
......
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