mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +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++)
|
for (size_t i = 0; i < vals.Count(); i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
wxString trimmed = vals[i];
|
wxString trimmed = vals[i];
|
||||||
trimmed.Trim();
|
trimmed.Trim().Trim(false);
|
||||||
trimmed.Trim(true);
|
|
||||||
if (trimmed.Cmp(vals[i]) != 0)
|
if (trimmed.Cmp(vals[i]) != 0)
|
||||||
{
|
{
|
||||||
if (!askedAboutSpaces)
|
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 \
|
what you are doing, it is recommended to trim spaces. Do you want \
|
||||||
Audacity to trim spaces for you?"
|
Audacity to trim spaces for you?"
|
||||||
),_("Spaces detected"), wxYES_NO);
|
),_("Spaces detected"), wxYES_NO);
|
||||||
|
askedAboutSpaces = true;
|
||||||
}
|
}
|
||||||
if (fixSpaces != wxYES)
|
if (fixSpaces != wxYES)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user