X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e773f79b191e77649b07f527a08405863a1cb117..6ea48c514e0b911113020c76fdb83b64f5941ddb:/wxPython/wx/py/frame.py diff --git a/wxPython/wx/py/frame.py b/wxPython/wx/py/frame.py index 9c05c4787d..58b760e4d2 100644 --- a/wxPython/wx/py/frame.py +++ b/wxPython/wx/py/frame.py @@ -503,6 +503,8 @@ class Frame(wx.Frame): else: win = wx.Window.FindFocus() win.DoFindNext(self.findData, self.findDlg) + if self.findDlg is not None: + self.OnFindClose(None) def OnFindClose(self, event): self.findDlg.Destroy()