Allow to specify cover name as (e.g.) "%artist%-%title%"

BUG:202
This commit is contained in:
craig.p.drummond
2013-04-24 21:20:11 +00:00
committed by craig.p.drummond
parent c22dec9e32
commit 61b9bbfb55
4 changed files with 37 additions and 27 deletions

View File

@@ -42,7 +42,7 @@ class CoverNameValidator : public QValidator
State validate(QString &input, int &) const
{
for (int i=0; i<input.length(); ++i) {
if (!input[i].isLetterOrNumber() || input[i].isSpace()) {
if (!input[i].isLetterOrNumber() && '%'!=input[i] && ' '!=input[i] && '-'!=input[i]) {
return Invalid;
}
}