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
This commit is contained in:
@@ -292,6 +292,9 @@ pascal Boolean CrossPlatformFilterCallback(
|
|||||||
|
|
||||||
int wxFileDialog::ShowModal()
|
int wxFileDialog::ShowModal()
|
||||||
{
|
{
|
||||||
|
m_paths.Empty();
|
||||||
|
m_fileNames.Empty();
|
||||||
|
|
||||||
OSErr err;
|
OSErr err;
|
||||||
NavDialogCreationOptions dialogCreateOptions;
|
NavDialogCreationOptions dialogCreateOptions;
|
||||||
|
|
||||||
|
@@ -153,6 +153,7 @@ int wxFileDialog::ShowModal()
|
|||||||
|
|
||||||
m_path = wxEmptyString;
|
m_path = wxEmptyString;
|
||||||
m_fileNames.Clear();
|
m_fileNames.Clear();
|
||||||
|
m_paths.Clear();
|
||||||
|
|
||||||
wxNonOwnedWindow* parentWindow = NULL;
|
wxNonOwnedWindow* parentWindow = NULL;
|
||||||
int returnCode = -1;
|
int returnCode = -1;
|
||||||
|
Reference in New Issue
Block a user