mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
Don't discard override filter with default rule. Don't override it with MP3 if a file is mp3
This commit is contained in:
parent
2e4d2f1132
commit
f89f540fb1
@ -418,6 +418,7 @@ int Importer::Import(wxString fName,
|
||||
if (!foundItem || (usersSelectionOverrides && !foundOverride))
|
||||
{
|
||||
bool prioritizeMp3 = false;
|
||||
if (usersSelectionOverrides && !foundOverride)
|
||||
importPlugins.Clear();
|
||||
wxLogMessage(wxT("Applying default rule"));
|
||||
// Special treatment for mp3 files
|
||||
@ -437,11 +438,19 @@ int Importer::Import(wxString fName,
|
||||
importPlugins.Append(plugin);
|
||||
}
|
||||
else if (prioritizeMp3)
|
||||
{
|
||||
if (usersSelectionOverrides)
|
||||
{
|
||||
wxLogMessage(wxT("Inserting %s at 1"),plugin->GetPluginStringID().c_str());
|
||||
importPlugins.Insert((size_t) 1, plugin);
|
||||
}
|
||||
else
|
||||
{
|
||||
wxLogMessage(wxT("Inserting %s at 0"),plugin->GetPluginStringID().c_str());
|
||||
importPlugins.Insert((size_t) 0, plugin);
|
||||
}
|
||||
}
|
||||
}
|
||||
importPluginNode = importPluginNode->GetNext();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user