mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Round 7 of wx3 changes
I believe the FileDialog is now complete and consistent across all 3 platforms.
This commit is contained in:
@@ -564,7 +564,7 @@ bool Exporter::GetFilename()
|
||||
mFilename.GetPath(),
|
||||
mFilename.GetFullName(),
|
||||
maskString,
|
||||
wxFD_SAVE | wxRESIZE_BORDER | FD_NO_ADD_EXTENSION);
|
||||
wxFD_SAVE | wxRESIZE_BORDER);
|
||||
mDialog = &fd;
|
||||
mDialog->PushEventHandler(this);
|
||||
|
||||
@@ -580,6 +580,10 @@ bool Exporter::GetFilename()
|
||||
}
|
||||
|
||||
mFilename = fd.GetPath();
|
||||
if (mFilename == wxT("")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
mFormat = fd.GetFilterIndex();
|
||||
mFilterIndex = fd.GetFilterIndex();
|
||||
|
||||
@@ -597,10 +601,6 @@ bool Exporter::GetFilename()
|
||||
}
|
||||
}
|
||||
|
||||
if (mFilename == wxT("")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
wxString ext = mFilename.GetExt();
|
||||
wxString defext = mPlugins[mFormat]->GetExtension(mSubFormat).Lower();
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ class DirManager;
|
||||
class WaveTrack;
|
||||
class TrackList;
|
||||
class MixerSpec;
|
||||
class FileDialog;
|
||||
class TimeTrack;
|
||||
class Mixer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user