Need to tell which object to Destroy()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1903,7 +1903,7 @@ class DocManager(wx.EvtHandler):
|
|||||||
newDoc.DeleteAllViews() # Implicitly deleted by DeleteAllViews
|
newDoc.DeleteAllViews() # Implicitly deleted by DeleteAllViews
|
||||||
frame = newDoc.GetFirstView().GetFrame()
|
frame = newDoc.GetFirstView().GetFrame()
|
||||||
if frame:
|
if frame:
|
||||||
Destroy() # DeleteAllViews doesn't get rid of the frame, so we'll explicitly destroy it.
|
frame.Destroy() # DeleteAllViews doesn't get rid of the frame, so we'll explicitly destroy it.
|
||||||
return None
|
return None
|
||||||
self.AddFileToHistory(path)
|
self.AddFileToHistory(path)
|
||||||
return newDoc
|
return newDoc
|
||||||
|
Reference in New Issue
Block a user