X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e773f79b191e77649b07f527a08405863a1cb117..c3be59bcdbc43ef1286cf5ea635d933bb802bd81:/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()