mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-31 17:08:45 +01:00
Tweak EQDefaultCurve update path
and add log message to aid testing.
This commit is contained in:
@@ -1479,13 +1479,19 @@ void EffectEqualization::UpdateDefaultCurves(bool updateAll /* false */)
|
|||||||
|
|
||||||
EQCurveArray userCurves = mCurves;
|
EQCurveArray userCurves = mCurves;
|
||||||
mCurves.Clear();
|
mCurves.Clear();
|
||||||
wxFileName fn;
|
// We only wamt to look for the shipped EQDefaultCurves.xml
|
||||||
|
wxFileName fn = wxFileName(wxStandardPaths::Get().GetResourcesDir(),
|
||||||
|
wxT("EQDefaultCurves.xml"));
|
||||||
|
wxLogDebug(wxT("Attempting to load EQDefaultCurves.xml from %s"),wxStandardPaths::Get().GetResourcesDir().c_str());
|
||||||
XMLFileReader reader;
|
XMLFileReader reader;
|
||||||
|
|
||||||
if(!GetDefaultFileName(fn) || !reader.Parse(this, fn.GetFullPath())) {
|
if(!reader.Parse(this, fn.GetFullPath())) {
|
||||||
wxLogError(wxT("EQDefaultCurves.xml could not be read."));
|
wxLogError(wxT("EQDefaultCurves.xml could not be read."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
wxLogDebug(wxT("Loading EQDefaultCurves.xml successful."));
|
||||||
|
}
|
||||||
|
|
||||||
EQCurveArray defaultCurves = mCurves;
|
EQCurveArray defaultCurves = mCurves;
|
||||||
mCurves.Clear(); // clear now so that we can sort then add back.
|
mCurves.Clear(); // clear now so that we can sort then add back.
|
||||||
|
|||||||
Reference in New Issue
Block a user