]> git.saurik.com Git - wxWidgets.git/commitdiff
Need to tell which object to Destroy()
authorRobin Dunn <robin@alldunn.com>
Thu, 30 Mar 2006 01:41:47 +0000 (01:41 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 30 Mar 2006 01:41:47 +0000 (01:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/docview.py

index dff329174c3d4e2f39fd6c21cc1c570c89c24f62..85b6253205acf4b06810cce6e85ca3948cc6b014 100644 (file)
@@ -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