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:
parent
62491cb769
commit
39064c42d5
@ -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))
|
||||
{
|
||||
|
@ -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(""),
|
||||
|
Loading…
x
Reference in New Issue
Block a user