Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 487368 Details for
Bug 626608
media-sound/audacity-2.1.3-r1 default file extension on export is always aiff
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Backport of fix to http://bugzilla.audacityteam.org/show_bug.cgi?id=1315
FileExport.patch (text/plain), 2.64 KB, created by
BobbyK
on 2017-07-30 12:48:36 UTC
(
hide
)
Description:
Backport of fix to http://bugzilla.audacityteam.org/show_bug.cgi?id=1315
Filename:
MIME Type:
Creator:
BobbyK
Created:
2017-07-30 12:48:36 UTC
Size:
2.64 KB
patch
obsolete
>--- A/src/export/Export.cpp 2017-03-08 08:15:50.000000000 -0500 >+++ B/src/export/Export.cpp 2017-07-26 20:08:55.399358895 -0400 >@@ -517,6 +517,7 @@ > mFilterIndex = 0; > } > maskString.RemoveLast(); >+ wxString defext = mPlugins[mFormat]->GetExtension(mSubFormat).Lower(); > > //Bug 1304: Set a default path if none was given. For Export. > #ifdef __WIN32__ >@@ -532,37 +533,44 @@ > mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), wxT("~/Documents"))); > #endif > mFilename.SetName(mProject->GetName()); >+ if (mFilename.GetName().empty()) >+ mFilename.SetName(_("untitled")); > while (true) { > // Must reset each iteration > mBook = NULL; > >- FileDialog fd(mProject, >- mFileDialogTitle, >- mFilename.GetPath(), >- mFilename.GetFullName(), >- maskString, >- wxFD_SAVE | wxRESIZE_BORDER); >- mDialog = &fd; >- mDialog->PushEventHandler(this); >- >- fd.SetUserPaneCreator(CreateUserPaneCallback, (wxUIntPtr) this); >- fd.SetFilterIndex(mFilterIndex); >+ { >+ auto useFileName = mFilename; >+ if (!useFileName.HasExt()) >+ useFileName.SetExt(defext); >+ FileDialog fd(mProject, >+ mFileDialogTitle, >+ mFilename.GetPath(), >+ useFileName.GetFullName(), >+ maskString, >+ wxFD_SAVE | wxRESIZE_BORDER); >+ mDialog = &fd; >+ mDialog->PushEventHandler(this); >+ >+ fd.SetUserPaneCreator(CreateUserPaneCallback, (wxUIntPtr) this); >+ fd.SetFilterIndex(mFilterIndex); > >- int result = fd.ShowModal(); >+ int result = fd.ShowModal(); > >- mDialog->PopEventHandler(); >+ mDialog->PopEventHandler(); > >- if (result == wxID_CANCEL) { >- return false; >- } >+ if (result == wxID_CANCEL) { >+ return false; >+ } > >- mFilename = fd.GetPath(); >- if (mFilename == wxT("")) { >- return false; >- } >+ mFilename = fd.GetPath(); >+ if (mFilename == wxT("")) { >+ return false; >+ } > >- mFormat = fd.GetFilterIndex(); >- mFilterIndex = fd.GetFilterIndex(); >+ mFormat = fd.GetFilterIndex(); >+ mFilterIndex = fd.GetFilterIndex(); >+ } > > int c = 0; > int i = -1; >@@ -581,7 +589,7 @@ > } > > wxString ext = mFilename.GetExt(); >- wxString defext = mPlugins[mFormat]->GetExtension(mSubFormat).Lower(); >+ defext = mPlugins[mFormat]->GetExtension(mSubFormat).Lower(); > > // > // Check the extension - add the default if it's not there,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 626608
: 487368