From 8b558f12280d7b0bbfa87d6d6a0c6473f3fbf81a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 25 Sep 2009 07:51:50 +0000 Subject: [PATCH] Applied #9520: Fix to allow repeated use of wxFileDialog object git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/filedlg.cpp | 3 +++ src/osx/cocoa/filedlg.mm | 1 + 2 files changed, 4 insertions(+) diff --git a/src/osx/carbon/filedlg.cpp b/src/osx/carbon/filedlg.cpp index 9ffded74f3..2b670be8d6 100644 --- a/src/osx/carbon/filedlg.cpp +++ b/src/osx/carbon/filedlg.cpp @@ -292,6 +292,9 @@ pascal Boolean CrossPlatformFilterCallback( int wxFileDialog::ShowModal() { + m_paths.Empty(); + m_fileNames.Empty(); + OSErr err; NavDialogCreationOptions dialogCreateOptions; diff --git a/src/osx/cocoa/filedlg.mm b/src/osx/cocoa/filedlg.mm index 33ece87025..727e9fe1a3 100644 --- a/src/osx/cocoa/filedlg.mm +++ b/src/osx/cocoa/filedlg.mm @@ -153,6 +153,7 @@ int wxFileDialog::ShowModal() m_path = wxEmptyString; m_fileNames.Clear(); + m_paths.Clear(); wxNonOwnedWindow* parentWindow = NULL; int returnCode = -1; -- 2.45.2