mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Don't display message if the EQ curves file is missing.
I can't think of a reason for having the message. Either the curves are there or they are not.
This commit is contained in:
parent
9dd79c9f80
commit
76436fc3fd
@ -1391,14 +1391,17 @@ void EffectEqualization::LoadCurves(wxString fileName, bool append)
|
|||||||
}
|
}
|
||||||
if( !fn.FileExists() )
|
if( !fn.FileExists() )
|
||||||
{
|
{
|
||||||
wxString errorMessage;
|
// LLL: Is there really a need for an error message at all???
|
||||||
errorMessage.Printf(_("EQCurves.xml and EQDefaultCurves.xml were not found on your system.\nPlease press 'help' to visit the download page.\n\nSave the curves at %s"), FileNames::DataDir().c_str());
|
//wxString errorMessage;
|
||||||
ShowErrorDialog(mUIParent, _("EQCurves.xml and EQDefaultCurves.xml missing"),
|
//errorMessage.Printf(_("EQCurves.xml and EQDefaultCurves.xml were not found on your system.\nPlease press 'help' to visit the download page.\n\nSave the curves at %s"), FileNames::DataDir().c_str());
|
||||||
errorMessage, wxT("http://wiki.audacityteam.org/wiki/EQCurvesDownload"), false);
|
//ShowErrorDialog(mUIParent, _("EQCurves.xml and EQDefaultCurves.xml missing"),
|
||||||
|
// errorMessage, wxT("http://wiki.audacityteam.org/wiki/EQCurvesDownload"), false);
|
||||||
|
|
||||||
// Have another go at finding EQCurves.xml in the data dir, in case 'help' helped
|
// Have another go at finding EQCurves.xml in the data dir, in case 'help' helped
|
||||||
fn = wxFileName( FileNames::DataDir(), wxT("EQDefaultCurves.xml") );
|
fn = wxFileName( FileNames::DataDir(), wxT("EQDefaultCurves.xml") );
|
||||||
if( !fn.FileExists() )
|
if( !fn.FileExists() )
|
||||||
{
|
{
|
||||||
|
mCurves.Clear();
|
||||||
mCurves.Add( _("unnamed") ); // we still need a default curve to use
|
mCurves.Add( _("unnamed") ); // we still need a default curve to use
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user