X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7a014180017908d32f0af32ebfa140fdc82b390..959b1a338e3b7c0e237b53ef3d7c9b51f4063eb6:/wxPython/wx/lib/docview.py diff --git a/wxPython/wx/lib/docview.py b/wxPython/wx/lib/docview.py index dff329174c..85b6253205 100644 --- a/wxPython/wx/lib/docview.py +++ b/wxPython/wx/lib/docview.py @@ -1903,7 +1903,7 @@ class DocManager(wx.EvtHandler): newDoc.DeleteAllViews() # Implicitly deleted by DeleteAllViews frame = newDoc.GetFirstView().GetFrame() 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 self.AddFileToHistory(path) return newDoc