|
@@ -918,11 +918,11 @@ class TaskFrame(wx.Frame):
|
|
|
# happens when closing dialog of a new layer which was
|
|
|
# removed from tree
|
|
|
pass
|
|
|
- self.Destroy()
|
|
|
+ self._Destroy()
|
|
|
else:
|
|
|
Debug.msg(1, "TaskFrame.OnCancel(): no parent")
|
|
|
# cancel for non-display commands
|
|
|
- self.Destroy()
|
|
|
+ self._Destroy()
|
|
|
|
|
|
def OnHelp(self, event):
|
|
|
"""Show manual page (switch to the 'Manual' notebook page)"""
|
|
@@ -938,6 +938,12 @@ class TaskFrame(wx.Frame):
|
|
|
return self.notebookpanel.createCmd(ignoreErrors=ignoreErrors,
|
|
|
ignoreRequired=ignoreRequired)
|
|
|
|
|
|
+ def _Destroy(self):
|
|
|
+ """Destroy Frame"""
|
|
|
+ self.notebookpanel.notebook.Unbind(wx.EVT_NOTEBOOK_PAGE_CHANGED)
|
|
|
+ self.notebookpanel.notebook.widget.Unbind(wx.EVT_NOTEBOOK_PAGE_CHANGED)
|
|
|
+ self.Destroy()
|
|
|
+
|
|
|
|
|
|
class CmdPanel(wx.Panel):
|
|
|
"""A panel containing a notebook dividing in tabs the different
|