mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
Fix ExtImportFilter rule editor space trimming.
* Won't ask more than once * Actually trims both leading and trailing spaces
This commit is contained in:
parent
b6972df871
commit
a61f711f88
@ -435,9 +435,9 @@ void ExtImportPrefs::OnRuleTableEdit (wxGridEvent& event)
|
||||
|
||||
for (size_t i = 0; i < vals.Count(); i++)
|
||||
{
|
||||
|
||||
wxString trimmed = vals[i];
|
||||
trimmed.Trim();
|
||||
trimmed.Trim(true);
|
||||
trimmed.Trim().Trim(false);
|
||||
if (trimmed.Cmp(vals[i]) != 0)
|
||||
{
|
||||
if (!askedAboutSpaces)
|
||||
@ -448,6 +448,7 @@ the items. They are likely to break the pattern matching. Unless you know \
|
||||
what you are doing, it is recommended to trim spaces. Do you want \
|
||||
Audacity to trim spaces for you?"
|
||||
),_("Spaces detected"), wxYES_NO);
|
||||
askedAboutSpaces = true;
|
||||
}
|
||||
if (fixSpaces != wxYES)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user