GH-2065 Strip non ASCII chars

This commit is contained in:
janrupf 2019-06-18 14:25:36 +02:00 committed by Petr Mrázek
parent ce12f1a734
commit 3bdf63b0ee

View File

@ -304,6 +304,10 @@ QString RemoveInvalidFilenameChars(QString string, QChar replaceWith)
{
string[i] = replaceWith;
}
else if(string[i] > 127) // non ASCII
{
string[i] = replaceWith;
}
}
return string;
}