1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

FileDialog shouldn't return duplicate names.

This commit is contained in:
Leland Lucius 2015-07-18 21:26:11 -05:00
parent 62491cb769
commit 39064c42d5
2 changed files with 3 additions and 5 deletions

View File

@ -661,6 +661,9 @@ int FileDialog::ShowModal()
void FileDialog::ModalFinishedCallback(void* panel, int returnCode)
{
m_paths.Clear();
m_fileNames.Clear();
int result = wxID_CANCEL;
if (HasFlag(wxFD_SAVE))
{

View File

@ -2397,12 +2397,7 @@ wxArrayString AudacityProject::ShowOpenDialog(wxString extraformat, wxString ext
// Construct and display the file dialog
wxArrayString selected;
#if defined(__WXMSW__reenable_if_new_filtering_does_not_work)
// Make sure you build wxWidgets with filedlgg.cpp enabled in core/generic
wxGenericFileDialog dlog(NULL,
#else
FileDialog dlog(NULL,
#endif
_("Select one or more audio files..."),
path,
wxT(""),